#8C257E

Closest named color: Warm Purple (#952E8F). oklch(46% 0.17 334.1), rgb(140, 37, 126).

Aa

White text reads best on this color (7.83:1).

About this color

#8C257E is a medium-dark, vivid purple. In OKLCH its lightness is 46%, its chroma 0.170 and its hue 334°. Its hue sits between the warm and cool halves of the wheel. The nearest named color is Warm Purple (#952E8F), ΔE 0.035 away. White text reads best on it, at 7.83:1.

Hue familyPurples
Lightnessmedium-dark (46%)
Chromavivid (0.170)
Temperaturein between
Nearest nameWarm Purple (#952E8F)
Black text2.68:1
White text7.83:1

Values

HEX#8C257E
RGBrgb(140, 37, 126)
HSLhsl(308, 58%, 35%)
OKLCHoklch(46% 0.17 334.1)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #8C257E 7.83:1 AAA Lc -90.9 Preferred for body text
Black text on #8C257E 2.68:1 Fails Lc 17.9 Dividers and decoration only
#8C257E text on white 7.83:1 AAA Lc 86.1 Fine for body text
#8C257E text on black 2.68:1 Fails Lc -15.9 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 700.

  1. Step 50

    50

    #FAF3F8

    oklch(97.1% 0.01 335.5)

  2. Step 100

    100

    #F4E4F0

    oklch(93.5% 0.023 334.3)

  3. Step 200

    200

    #EDCEE6

    oklch(88.4% 0.047 333.8)

  4. Step 300

    300

    #E2ADD7

    oklch(80.9% 0.083 333.7)

  5. Step 400

    400

    #D280C2

    oklch(70.8% 0.131 334.3)

  6. Step 500

    500

    #C45CB3

    oklch(63.1% 0.169 334)

  7. Step 600

    600

    #AF3F9E

    oklch(55.7% 0.182 334.2)

  8. Step 700

    700 (this color)

    #8C257E

    oklch(46% 0.17 334.1)

  9. Step 800

    800

    #7A296E

    oklch(42.8% 0.141 334.1)

  10. Step 900

    900

    #632759

    oklch(37.8% 0.109 334.4)

  11. Step 950

    950

    #3A1834

    oklch(27.1% 0.068 334.4)

Export this scale for Tailwind in the Tailwind colors tool

#8C257E with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#2348800.184
Deuteranopia (no green cones)#48577C0.156
Tritanopia (no blue cones)#932E4F0.086
Achromatopsia (no color)#5252520.171

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #8C257E

    #8C257E

    oklch(46% 0.17 334.1)

  • #006A39

    #006A39

    oklch(46% 0.115 154.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8C257E

    #8C257E

    oklch(46% 0.17 334.1)

  • #6E36A3

    #6E36A3

    oklch(46.1% 0.169 304.1)

  • #9E184D

    #9E184D

    oklch(46.1% 0.17 4.2)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #8C257E

    #8C257E

    oklch(46% 0.17 334.1)

  • #4B6200

    #4B6200

    oklch(46% 0.114 124)

  • #00675D

    #00675D

    oklch(46.1% 0.082 183.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8C257E

    #8C257E

    oklch(46% 0.17 334.1)

  • #6A5600

    #6A5600

    oklch(46% 0.094 93.2)

  • #006374

    #006374

    oklch(46% 0.081 214.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8C257E

    #8C257E

    oklch(46% 0.17 334.1)

  • #7F4900

    #7F4900

    oklch(45.9% 0.104 64)

  • #006A39

    #006A39

    oklch(46% 0.115 154.3)

  • #005D92

    #005D92

    oklch(46.1% 0.113 243.8)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #8C257E, closest first.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #8C257E in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.