#840A42
Closest named color: Red Purple (#820747). oklch(40.1% 0.155 1.6), rgb(132, 10, 66).
Aa
White text reads best on this color (9.98:1).
About this color
#840A42 is a dark, vivid red. In OKLCH its lightness is 40%, its chroma 0.155 and its hue 2°. Its hue sits on the warm side of the wheel. The nearest named color is Red Purple (#820747), ΔE 0.011 away. White text reads best on it, at 9.98:1.
| Hue family | Reds |
| Lightness | dark (40%) |
| Chroma | vivid (0.155) |
| Temperature | warm |
| Nearest name | Red Purple (#820747) |
| Black text | 2.10:1 |
| White text | 9.98:1 |
Values
| HEX | #840A42 |
| RGB | rgb(132, 10, 66) |
| HSL | hsl(332, 86%, 28%) |
| OKLCH | oklch(40.1% 0.155 1.6) |
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.
| Pair | WCAG 2 | Result | APCA | APCA guidance |
|---|---|---|---|---|
| White text on #840A42 | 9.98:1 | AAA | Lc -95.7 | Preferred for body text |
| Black text on #840A42 | 2.10:1 | Fails | Lc 12.6 | Not readable |
| #840A42 text on white | 9.98:1 | AAA | Lc 91.4 | Preferred for body text |
| #840A42 text on black | 2.10:1 | Fails | Lc -11.0 | 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.
-
Step 50
50
#FFF1F5
oklch(97% 0.016 358)
-
Step 100
100
#FFE1E8
oklch(93.6% 0.034 2)
-
Step 200
200
#FFC8D6
oklch(88.5% 0.065 1.6)
-
Step 300
300
#FFA0BB
oklch(80.9% 0.117 1.6)
-
Step 400
400
#F96598
oklch(70.6% 0.186 1.6)
-
Step 500
500
#F1257F
oklch(63.1% 0.238 1.7)
-
Step 600
600
#D1006A
oklch(55.6% 0.225 1.6)
-
Step 700
700
#B10059
oklch(49.1% 0.199 1.5)
-
Step 800
800
#920048
oklch(42.6% 0.172 1.7)
-
Step 900
900 (this color)
#840A42
oklch(40.1% 0.155 1.6)
-
Step 950
950
#490723
oklch(26.9% 0.098 1.5)
#840A42 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.
| Vision | Seen as | Shift (ΔE) |
|---|---|---|
| Protanopia (no red cones) | #2E3443 | 0.176 |
| Deuteranopia (no green cones) | #4D4A3F | 0.157 |
| Tritanopia (no blue cones) | #900026 | 0.049 |
| Achromatopsia (no color) | #424242 | 0.157 |
Harmonies
Hue rotations in OKLCH that keep this color's lightness and chroma.
Complementary
The opposite hue (180°).
- #840A42
#840A42
oklch(40.1% 0.155 1.6)
- #00544B
#00544B
oklch(40% 0.071 182.6)
Analogous
Neighbouring hues, 30° either side.
Split complementary
The two hues beside the complement (150° and 210°).
Triadic
Three hues spaced 120° apart.
Palettes with this color
Curated palettes that contain a color within ΔE 0.04 (OKLab) of #840A42, closest first.
Similar named colors
The eight closest entries in our named color list, with their ΔE distance.
- Red Purple #820747 ΔE 0.011
- Wine #80013F ΔE 0.013
- Red Wine #8C0034 ΔE 0.028
- Mulberry #920A4E ΔE 0.035
- Bordeaux #7B002C ΔE 0.039
- Merlot #730039 ΔE 0.043
- Purple Red #990147 ΔE 0.045
- Velvet #750851 ΔE 0.046
Use #840A42 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.