#840C46

Closest named color: Red Purple (#820747). oklch(40.3% 0.155 359.4), rgb(132, 12, 70).

Aa

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

About this color

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

Hue familyReds
Lightnessdark (40%)
Chromavivid (0.155)
Temperaturewarm
Nearest nameRed Purple (#820747)
Black text2.12:1
White text9.89:1

Values

HEX#840C46
RGBrgb(132, 12, 70)
HSLhsl(331, 83%, 28%)
OKLCHoklch(40.3% 0.155 359.4)

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 #840C46 9.89:1 AAA Lc -95.6 Preferred for body text
Black text on #840C46 2.12:1 Fails Lc 12.7 Not readable
#840C46 text on white 9.89:1 AAA Lc 91.2 Preferred for body text
#840C46 text on black 2.12:1 Fails Lc -11.1 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

    #F7CCD8

    oklch(88.6% 0.051 359.6)

  4. Step 300

    300

    #F2A8BF

    oklch(80.9% 0.091 359.1)

  5. Step 400

    400

    #E7769E

    oklch(70.6% 0.146 359.1)

  6. Step 500

    500

    #DD4D86

    oklch(63.2% 0.186 359.5)

  7. Step 600

    600

    #C82670

    oklch(55.6% 0.202 359.3)

  8. Step 700

    700

    #AC155D

    oklch(49% 0.187 359.6)

  9. Step 800

    800 (this color)

    #840C46

    oklch(40.3% 0.155 359.4)

  10. Step 900

    900

    #711D40

    oklch(37.8% 0.121 359.3)

  11. Step 950

    950

    #421325

    oklch(27% 0.075 359.7)

Export this scale for Tailwind in the Tailwind colors tool

#840C46 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)#2D35470.177
Deuteranopia (no green cones)#4D4B430.157
Tritanopia (no blue cones)#9000290.051
Achromatopsia (no color)#4343430.157

Harmonies

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

Complementary

The opposite hue (180°).

  • #840C46

    #840C46

    oklch(40.3% 0.155 359.4)

  • #00554A

    #00554A

    oklch(40.3% 0.073 180.2)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #840C46

    #840C46

    oklch(40.3% 0.155 359.4)

  • #731C70

    #731C70

    oklch(40.4% 0.155 329.5)

  • #890F08

    #890F08

    oklch(40.3% 0.155 29.4)

Open the analogous palette in the generator

Split complementary

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

  • #840C46

    #840C46

    oklch(40.3% 0.155 359.4)

  • #005824

    #005824

    oklch(40.2% 0.112 149.7)

  • #00525D

    #00525D

    oklch(40.2% 0.07 210.3)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #840C46

    #840C46

    oklch(40.3% 0.155 359.4)

  • #434F00

    #434F00

    oklch(40.3% 0.095 119.2)

  • #004E74

    #004E74

    oklch(40.3% 0.091 239.1)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #840C46

    #840C46

    oklch(40.3% 0.155 359.4)

  • #5A4600

    #5A4600

    oklch(40.4% 0.083 90)

  • #00554A

    #00554A

    oklch(40.3% 0.073 180.2)

  • #293C9B

    #293C9B

    oklch(40.3% 0.156 269.4)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

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