#942EB9#942EB9
#942EB9 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.7% C 0.213 H 315.2°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #942EB9 |
|---|---|
| RGB | rgb(148, 46, 185) |
| HSL | hsl(284, 60%, 45%) |
| HSV | hsv(284, 75%, 73%) |
| CMYK | cmyk(20%, 75.1%, 0%, 27.5%) |
| CIE-LAB | lab(40.82, 61.82, -53.18) |
| CIE-LCH | lch(40.82, 81.55, 319.29°) |
| OKLab | oklab(51.74% 0.1508 -0.15) |
| OKLCH | oklch(51.74% 0.213 315.2) |
| XYZ | xyz(21.9453, 11.7535, 47.0022) |
| Luminance | 0.1175 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.08
Purply
#983FB2
ΔE00 3.54
Barney
#AC1DB8
ΔE00 4.34
Darkviolet
#9400D3
ΔE00 4.71
Vibrant Purple
#AD03DE
ΔE00 5.81
Blueviolet
#8A2BE2
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#942EB9 #53B92E
analogous
#4F2EB9 #942EB9 #B92E98
triadic
#942EB9 #B9942E #2EB994
tetradic
#942EB9 #B94F2E #53B92E #2E98B9
square
#942EB9 #B94F2E #53B92E #2E98B9
split-complementary
#942EB9 #98B92E #2EB94F
monochromatic
#461657 #6D2288 #942EB9 #B151D4 #C782E0
Accessibility & contrast
On white
6.27
#942EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#942EB9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #942EB9
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##942EB9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##942EB9 | 1.00 | 6.27 | 3.35 | 6.27 |
| #FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005BBD
Deuteranopia (green-blind)
#2863B6
Tritanopia (blue-blind)
#914D72
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #942eb9; /* rgb */ color: rgb(148, 46, 185); /* oklch */ color: oklch(51.7% 0.213 315.2);
Tailwind
colors: {
custom: {
50: '#b872cf',
500: '#942eb9',
950: '#000000',
},
}SCSS
$custom: #942eb9; $custom-light: #b872cf; $custom-dark: #000000;
JSON
{
"hex": "#942eb9",
"rgb": {
"r": 148,
"g": 46,
"b": 185
},
"hsl": {
"h": 284.029,
"s": 60.173,
"l": 45.294
},
"oklch": {
"l": 0.51737,
"c": 0.21273,
"h": 315.2
},
"luminance": 0.11753
}Semantic roles & 50–950 ramp
primary
#942EB9
secondary
#8FC97A
accent
#E3446F
background
#FBF7FC
surface
#F7EDF9
border
#D0C8D2
text
#120814
muted
#817B82