#840F51

Closest named color: Red Purple (#820747). oklch(40.9% 0.158 353.2), rgb(132, 15, 81).

Aa

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

About this color

#840F51 is a dark, vivid red. In OKLCH its lightness is 41%, its chroma 0.158 and its hue 353°. Its hue sits on the warm side of the wheel. The nearest named color is Red Purple (#820747), ΔE 0.017 away. White text reads best on it, at 9.68:1.

Hue familyReds
Lightnessdark (41%)
Chromavivid (0.158)
Temperaturewarm
Nearest nameRed Purple (#820747)
Black text2.16:1
White text9.68:1

Values

HEX#840F51
RGBrgb(132, 15, 81)
HSLhsl(326, 80%, 29%)
OKLCHoklch(40.9% 0.158 353.2)

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 #840F51 9.68:1 AAA Lc -95.2 Preferred for body text
Black text on #840F51 2.16:1 Fails Lc 13.1 Not readable
#840F51 text on white 9.68:1 AAA Lc 90.8 Preferred for body text
#840F51 text on black 2.16:1 Fails Lc -11.5 Not readable

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

    #FDF2F6

    oklch(97.1% 0.013 353.1)

  2. Step 100

    100

    #F9E3EB

    oklch(93.6% 0.026 353.5)

  3. Step 200

    200

    #F6CCDC

    oklch(88.6% 0.052 353.3)

  4. Step 300

    300

    #F0A8C5

    oklch(80.9% 0.092 353.5)

  5. Step 400

    400

    #E576A8

    oklch(70.6% 0.148 353.2)

  6. Step 500

    500

    #DA4D93

    oklch(63.1% 0.188 353.1)

  7. Step 600

    600

    #C5267D

    oklch(55.5% 0.205 353.2)

  8. Step 700

    700

    #AA1569

    oklch(49.1% 0.191 353.5)

  9. Step 800

    800 (this color)

    #840F51

    oklch(40.9% 0.158 353.2)

  10. Step 900

    900

    #6F1D47

    oklch(37.7% 0.122 353.2)

  11. Step 950

    950

    #41122A

    oklch(26.9% 0.078 352)

Export this scale for Tailwind in the Tailwind colors tool

#840F51 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)#2A37530.179
Deuteranopia (no green cones)#4B4C4F0.157
Tritanopia (no blue cones)#8F00300.057
Achromatopsia (no color)#4444440.159

Harmonies

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

Complementary

The opposite hue (180°).

  • #840F51

    #840F51

    oklch(40.9% 0.158 353.2)

  • #005846

    #005846

    oklch(41% 0.079 172.7)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #840F51

    #840F51

    oklch(40.9% 0.158 353.2)

  • #70207A

    #70207A

    oklch(40.9% 0.157 323)

  • #8C0B1C

    #8C0B1C

    oklch(40.9% 0.158 23.2)

Open the analogous palette in the generator

Split complementary

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

  • #840F51

    #840F51

    oklch(40.9% 0.158 353.2)

  • #005B07

    #005B07

    oklch(40.9% 0.136 143.2)

  • #00555B

    #00555B

    oklch(41% 0.07 203.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #840F51

    #840F51

    oklch(40.9% 0.158 353.2)

  • #4B4F00

    #4B4F00

    oklch(41% 0.091 113.1)

  • #005170

    #005170

    oklch(40.9% 0.084 232.8)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #840F51

    #840F51

    oklch(40.9% 0.158 353.2)

  • #604500

    #604500

    oklch(40.9% 0.084 83.1)

  • #005846

    #005846

    oklch(41% 0.079 172.7)

  • #18419E

    #18419E

    oklch(40.9% 0.158 263.2)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #840F51 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.