#942040#942040
#942040 is a dark, vivid pink. Relative luminance 0.077; OKLCH L 44.5% C 0.151 H 10.2°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).
Color values
| HEX | #942040 |
|---|---|
| RGB | rgb(148, 32, 64) |
| HSL | hsl(343, 64%, 35%) |
| HSV | hsv(343, 78%, 58%) |
| CMYK | cmyk(0%, 78.4%, 56.8%, 42%) |
| CIE-LAB | lab(33.35, 49.15, 10.64) |
| CIE-LCH | lch(33.35, 50.29, 12.21°) |
| OKLab | oklab(44.49% 0.1491 0.0268) |
| OKLCH | oklch(44.49% 0.151 10.2) |
| XYZ | xyz(13.6560, 7.7011, 5.6169) |
| Luminance | 0.0770 (WCAG relative) |
| Temperature | warm |
| Family | pink |
Closest named colors
Cranberry
#9E003A
ΔE00 2.87
Red Wine
#8C0034
ΔE00 3.68
Purple Red
#990147
ΔE00 4.23
Berry
#990F4B
ΔE00 4.48
Raspberry (survey)
#B00149
ΔE00 5.17
Purplish Red
#B0054B
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#942040 #209474
analogous
#94207A #942040 #943A20
triadic
#942040 #409420 #204094
tetradic
#942040 #7A9420 #209474 #3A2094
square
#942040 #7A9420 #209474 #3A2094
split-complementary
#942040 #20943A #207A94
monochromatic
#2F0A14 #62152A #942040 #C62B56 #DA5479
Accessibility & contrast
On white
8.27
#942040 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.54
#942040 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #942040
8.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##942040 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##942040 | 1.00 | 8.27 | 2.54 | 8.27 |
| #FFFFFF | 8.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3F3F41
Deuteranopia (green-blind)
#5D573D
Tritanopia (blue-blind)
#A2002E
Achromatopsia (no color)
#4E4E4E
Design tokens & code
CSS
--color: #942040; /* rgb */ color: rgb(148, 32, 64); /* oklch */ color: oklch(44.5% 0.151 10.2);
Tailwind
colors: {
custom: {
50: '#ba6774',
500: '#942040',
950: '#000000',
},
}SCSS
$custom: #942040; $custom-light: #ba6774; $custom-dark: #000000;
JSON
{
"hex": "#942040",
"rgb": {
"r": 148,
"g": 32,
"b": 64
},
"hsl": {
"h": 343.448,
"s": 64.444,
"l": 35.294
},
"oklch": {
"l": 0.44488,
"c": 0.15147,
"h": 10.2
},
"luminance": 0.07699
}Semantic roles & 50–950 ramp
primary
#942040
secondary
#52BEA0
accent
#E7B940
background
#FCF6F7
surface
#F8EBED
border
#D1C6C8
text
#130708
muted
#827A7B