#840442

Closest named color: Red Purple (#820747). oklch(39.9% 0.158 1.1), rgb(132, 4, 66).

Aa

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

About this color

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

Hue familyReds
Lightnessdark (40%)
Chromavivid (0.158)
Temperaturewarm
Nearest nameRed Purple (#820747)
Black text2.07:1
White text10.11:1

Values

HEX#840442
RGBrgb(132, 4, 66)
HSLhsl(331, 94%, 27%)
OKLCHoklch(39.9% 0.158 1.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 #840442 10.11:1 AAA Lc -95.8 Preferred for body text
Black text on #840442 2.07:1 Fails Lc 12.5 Not readable
#840442 text on white 10.11:1 AAA Lc 91.4 Preferred for body text
#840442 text on black 2.07:1 Fails Lc -10.9 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 900.

  1. Step 50

    50

    #FFF1F5

    oklch(97% 0.016 358)

  2. Step 100

    100

    #FFE1E8

    oklch(93.6% 0.034 2)

  3. Step 200

    200

    #FFC8D6

    oklch(88.5% 0.065 1.6)

  4. Step 300

    300

    #FFA0BC

    oklch(80.9% 0.117 1)

  5. Step 400

    400

    #FB6499

    oklch(70.8% 0.19 1.4)

  6. Step 500

    500

    #F31E80

    oklch(63.1% 0.243 1.3)

  7. Step 600

    600

    #D1006B

    oklch(55.6% 0.225 1.2)

  8. Step 700

    700

    #B1005A

    oklch(49.2% 0.199 1.1)

  9. Step 800

    800

    #920049

    oklch(42.7% 0.173 1.1)

  10. Step 900

    900 (this color)

    #840442

    oklch(39.9% 0.158 1.1)

  11. Step 950

    950

    #4A0623

    oklch(27.1% 0.1 1.7)

Export this scale for Tailwind in the Tailwind colors tool

#840442 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)#2C33430.181
Deuteranopia (no green cones)#4D4A3F0.161
Tritanopia (no blue cones)#9000250.052
Achromatopsia (no color)#4242420.160

Harmonies

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

Complementary

The opposite hue (180°).

  • #840442

    #840442

    oklch(39.9% 0.158 1.1)

  • #00544A

    #00544A

    oklch(40% 0.072 181.3)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #840442

    #840442

    oklch(39.9% 0.158 1.1)

  • #73176D

    #73176D

    oklch(39.8% 0.158 331)

  • #870E00

    #870E00

    oklch(39.8% 0.155 31.1)

Open the analogous palette in the generator

Split complementary

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

  • #840442

    #840442

    oklch(39.9% 0.158 1.1)

  • #005727

    #005727

    oklch(40% 0.107 151.1)

  • #00515C

    #00515C

    oklch(39.9% 0.069 210.4)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #840442

    #840442

    oklch(39.9% 0.158 1.1)

  • #404E00

    #404E00

    oklch(39.7% 0.095 120.7)

  • #004C74

    #004C74

    oklch(39.8% 0.093 241)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #840442

    #840442

    oklch(39.9% 0.158 1.1)

  • #584500

    #584500

    oklch(39.9% 0.082 90.8)

  • #00544A

    #00544A

    oklch(40% 0.072 181.3)

  • #2B399B

    #2B399B

    oklch(39.9% 0.159 270.9)

Open the square palette in the generator

Palettes with this color

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

Similar named colors

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

Use #840442 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.