#840F45

Closest named color: Red Purple (#820747). oklch(40.4% 0.153 0.3), rgb(132, 15, 69).

Aa

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

About this color

#840F45 is a dark, vivid red. In OKLCH its lightness is 40%, its chroma 0.153 and its hue 0°. Its hue sits on the warm side of the wheel. The nearest named color is Red Purple (#820747), ΔE 0.010 away. White text reads best on it, at 9.83:1.

Hue familyReds
Lightnessdark (40%)
Chromavivid (0.153)
Temperaturewarm
Nearest nameRed Purple (#820747)
Black text2.13:1
White text9.83:1

Values

HEX#840F45
RGBrgb(132, 15, 69)
HSLhsl(332, 80%, 29%)
OKLCHoklch(40.4% 0.153 0.3)

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 #840F45 9.83:1 AAA Lc -95.5 Preferred for body text
Black text on #840F45 2.13:1 Fails Lc 12.8 Not readable
#840F45 text on white 9.83:1 AAA Lc 91.2 Preferred for body text
#840F45 text on black 2.13:1 Fails Lc -11.2 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

    #FDF2F5

    oklch(97.1% 0.012 358.8)

  2. Step 100

    100

    #FAE3E9

    oklch(93.6% 0.026 359.9)

  3. Step 200

    200

    #F6CCD7

    oklch(88.4% 0.049 0.6)

  4. Step 300

    300

    #F1A9BE

    oklch(80.9% 0.088 0.2)

  5. Step 400

    400

    #E7779C

    oklch(70.7% 0.143 0.4)

  6. Step 500

    500

    #DC4E84

    oklch(63.1% 0.183 0.4)

  7. Step 600

    600

    #C7296E

    oklch(55.6% 0.198 0.2)

  8. Step 700

    700

    #AC185C

    oklch(49.2% 0.185 0.3)

  9. Step 800

    800 (this color)

    #840F45

    oklch(40.4% 0.153 0.3)

  10. Step 900

    900

    #701D3F

    oklch(37.6% 0.12 359.7)

  11. Step 950

    950

    #421325

    oklch(27% 0.075 359.7)

Export this scale for Tailwind in the Tailwind colors tool

#840F45 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)#2F35460.173
Deuteranopia (no green cones)#4E4B420.154
Tritanopia (no blue cones)#9000290.049
Achromatopsia (no color)#4343430.155

Harmonies

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

Complementary

The opposite hue (180°).

  • #840F45

    #840F45

    oklch(40.4% 0.153 0.3)

  • #00564B

    #00564B

    oklch(40.6% 0.074 180.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #840F45

    #840F45

    oklch(40.4% 0.153 0.3)

  • #731D6F

    #731D6F

    oklch(40.4% 0.153 330)

  • #891307

    #891307

    oklch(40.5% 0.153 30.4)

Open the analogous palette in the generator

Split complementary

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

  • #840F45

    #840F45

    oklch(40.4% 0.153 0.3)

  • #005926

    #005926

    oklch(40.6% 0.111 150.2)

  • #00535E

    #00535E

    oklch(40.5% 0.07 210.1)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #840F45

    #840F45

    oklch(40.4% 0.153 0.3)

  • #425000

    #425000

    oklch(40.5% 0.097 120.5)

  • #004E76

    #004E76

    oklch(40.5% 0.093 240.5)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #840F45

    #840F45

    oklch(40.4% 0.153 0.3)

  • #5A4600

    #5A4600

    oklch(40.4% 0.083 90)

  • #00564B

    #00564B

    oklch(40.6% 0.074 180.3)

  • #2C3C9A

    #2C3C9A

    oklch(40.4% 0.154 270.5)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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