#942ED3#942ED3
#942ED3 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.6% C 0.236 H 308.2°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).
Color values
| HEX | #942ED3 |
|---|---|
| RGB | rgb(148, 46, 211) |
| HSL | hsl(277, 65%, 50%) |
| HSV | hsv(277, 78%, 83%) |
| CMYK | cmyk(29.9%, 78.2%, 0%, 17.3%) |
| CIE-LAB | lab(42.69, 67.14, -65.29) |
| CIE-LCH | lch(42.69, 93.65, 315.80°) |
| OKLab | oklab(53.64% 0.1459 -0.1856) |
| OKLCH | oklch(53.64% 0.236 308.2) |
| XYZ | xyz(24.9451, 12.9534, 62.8015) |
| Luminance | 0.1295 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 1.63
Blueviolet
#8A2BE2
ΔE00 2.80
Violet (survey)
#9A0EEA
ΔE00 3.22
Darkviolet
#9400D3
ΔE00 3.50
Vibrant Purple
#AD03DE
ΔE00 4.01
Vivid Purple
#9900FA
ΔE00 4.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#942ED3 #6DD32E
analogous
#422ED3 #942ED3 #D32EBF
triadic
#942ED3 #D3942E #2ED394
tetradic
#942ED3 #D3422E #6DD32E #2EBFD3
square
#942ED3 #D3422E #6DD32E #2EBFD3
split-complementary
#942ED3 #BFD32E #2ED342
monochromatic
#4E176F #7122A2 #942ED3 #AE61DE #C893E8
Accessibility & contrast
On white
5.85
#942ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.59
#942ED3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #942ED3
5.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##942ED3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##942ED3 | 1.00 | 5.85 | 3.59 | 5.85 |
| #FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061D7
Deuteranopia (green-blind)
#0066D0
Tritanopia (blue-blind)
#8A5881
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #942ed3; /* rgb */ color: rgb(148, 46, 211); /* oklch */ color: oklch(53.6% 0.236 308.2);
Tailwind
colors: {
custom: {
50: '#b973e1',
500: '#942ed3',
950: '#000000',
},
}SCSS
$custom: #942ed3; $custom-light: #b973e1; $custom-dark: #000000;
JSON
{
"hex": "#942ed3",
"rgb": {
"r": 148,
"g": 46,
"b": 211
},
"hsl": {
"h": 277.091,
"s": 65.217,
"l": 50.392
},
"oklch": {
"l": 0.53643,
"c": 0.23607,
"h": 308.2
},
"luminance": 0.12953
}Semantic roles & 50–950 ramp
primary
#942ED3
secondary
#A6D38A
accent
#E84080
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#120915
muted
#817B83