#942FD2#942FD2
#942FD2 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.6% C 0.234 H 308.4°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).
Color values
| HEX | #942FD2 |
|---|---|
| RGB | rgb(148, 47, 210) |
| HSL | hsl(277, 64%, 50%) |
| HSV | hsv(277, 78%, 82%) |
| CMYK | cmyk(29.5%, 77.6%, 0%, 17.6%) |
| CIE-LAB | lab(42.74, 66.58, -64.64) |
| CIE-LCH | lch(42.74, 92.80, 315.85°) |
| OKLab | oklab(53.65% 0.1454 -0.1837) |
| OKLCH | oklch(53.65% 0.234 308.4) |
| XYZ | xyz(24.8597, 12.9825, 62.1565) |
| Luminance | 0.1298 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 1.49
Blueviolet
#8A2BE2
ΔE00 2.94
Violet (survey)
#9A0EEA
ΔE00 3.38
Darkviolet
#9400D3
ΔE00 3.60
Vibrant Purple
#AD03DE
ΔE00 4.05
Vivid Purple
#9900FA
ΔE00 5.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#942FD2 #6DD22F
analogous
#422FD2 #942FD2 #D22FBE
triadic
#942FD2 #D2942F #2FD294
tetradic
#942FD2 #D2422F #6DD22F #2FBED2
square
#942FD2 #D2422F #6DD22F #2FBED2
split-complementary
#942FD2 #BED22F #2FD242
monochromatic
#4E186F #7123A1 #942FD2 #AE61DD #C894E8
Accessibility & contrast
On white
5.84
#942FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.60
#942FD2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #942FD2
5.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##942FD2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##942FD2 | 1.00 | 5.84 | 3.60 | 5.84 |
| #FFFFFF | 5.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0061D6
Deuteranopia (green-blind)
#0066CF
Tritanopia (blue-blind)
#8A5880
Achromatopsia (no color)
#656565
Design tokens & code
CSS
--color: #942fd2; /* rgb */ color: rgb(148, 47, 210); /* oklch */ color: oklch(53.6% 0.234 308.4);
Tailwind
colors: {
custom: {
50: '#b973e1',
500: '#942fd2',
950: '#000000',
},
}SCSS
$custom: #942fd2; $custom-light: #b973e1; $custom-dark: #000000;
JSON
{
"hex": "#942fd2",
"rgb": {
"r": 148,
"g": 47,
"b": 210
},
"hsl": {
"h": 277.178,
"s": 64.427,
"l": 50.392
},
"oklch": {
"l": 0.5365,
"c": 0.23424,
"h": 308.4
},
"luminance": 0.12982
}Semantic roles & 50–950 ramp
primary
#942FD2
secondary
#A6D38A
accent
#E74080
background
#FBF7FD
surface
#F7EDFB
border
#D0C8D4
text
#120915
muted
#817B83