#8C3158

Closest named color: Berry (#990F4B). oklch(45.6% 0.13 357), rgb(140, 49, 88).

Aa

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

About this color

#8C3158 is a medium-dark, moderately saturated red. In OKLCH its lightness is 46%, its chroma 0.130 and its hue 357°. Its hue sits on the warm side of the wheel. The nearest named color is Berry (#990F4B), ΔE 0.046 away. White text reads best on it, at 7.79:1.

Hue familyReds
Lightnessmedium-dark (46%)
Chromamoderately saturated (0.130)
Temperaturewarm
Nearest nameBerry (#990F4B)
Black text2.69:1
White text7.79:1

Values

HEX#8C3158
RGBrgb(140, 49, 88)
HSLhsl(334, 48%, 37%)
OKLCHoklch(45.6% 0.13 357)

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 #8C3158 7.79:1 AAA Lc -91.1 Preferred for body text
Black text on #8C3158 2.69:1 Fails Lc 17.7 Dividers and decoration only
#8C3158 text on white 7.79:1 AAA Lc 86.3 Fine for body text
#8C3158 text on black 2.69:1 Fails Lc -15.7 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 800.

  1. Step 50

    50

    #FCF3F5

    oklch(97.2% 0.01 2)

  2. Step 100

    100

    #F7E4EA

    oklch(93.6% 0.022 356.3)

  3. Step 200

    200

    #F1CED9

    oklch(88.4% 0.042 357.1)

  4. Step 300

    300

    #EAADC1

    oklch(81% 0.076 357.5)

  5. Step 400

    400

    #DC7FA2

    oklch(70.7% 0.121 356.6)

  6. Step 500

    500

    #D05B8B

    oklch(63.1% 0.156 356.8)

  7. Step 600

    600

    #BB3E75

    oklch(55.7% 0.168 356.9)

  8. Step 700

    700

    #A12E62

    oklch(49.1% 0.157 357)

  9. Step 800

    800 (this color)

    #8C3158

    oklch(45.6% 0.13 357)

  10. Step 900

    900

    #692642

    oklch(37.6% 0.101 357)

  11. Step 950

    950

    #3E1727

    oklch(27% 0.064 356.6)

Export this scale for Tailwind in the Tailwind colors tool

#8C3158 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)#4147590.143
Deuteranopia (no green cones)#5958560.130
Tritanopia (no blue cones)#9729410.040
Achromatopsia (no color)#5252520.131

Harmonies

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

Complementary

The opposite hue (180°).

  • #8C3158

    #8C3158

    oklch(45.6% 0.13 357)

  • #006656

    #006656

    oklch(45.6% 0.085 177)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #8C3158

    #8C3158

    oklch(45.6% 0.13 357)

  • #7B387C

    #7B387C

    oklch(45.6% 0.13 326.9)

  • #91332D

    #91332D

    oklch(45.6% 0.128 27)

Open the analogous palette in the generator

Split complementary

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

  • #8C3158

    #8C3158

    oklch(45.6% 0.13 357)

  • #0D6926

    #0D6926

    oklch(45.6% 0.13 146.9)

  • #00636D

    #00636D

    oklch(45.7% 0.078 206.8)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #8C3158

    #8C3158

    oklch(45.6% 0.13 357)

  • #535E00

    #535E00

    oklch(45.6% 0.106 117.4)

  • #005E87

    #005E87

    oklch(45.6% 0.099 236.9)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #8C3158

    #8C3158

    oklch(45.6% 0.13 357)

  • #6D5300

    #6D5300

    oklch(45.7% 0.093 87.6)

  • #006656

    #006656

    oklch(45.6% 0.085 177)

  • #36519E

    #36519E

    oklch(45.6% 0.129 266.7)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #8C3158 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.