#984ED2#984ED2
#984ED2 is a mid, vivid violet. Relative luminance 0.168; OKLCH L 57.5% C 0.199 H 307.0°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).
Color values
| HEX | #984ED2 |
|---|---|
| RGB | rgb(152, 78, 210) |
| HSL | hsl(274, 59%, 56%) |
| HSV | hsv(274, 63%, 82%) |
| CMYK | cmyk(27.6%, 62.9%, 0%, 17.6%) |
| CIE-LAB | lab(47.98, 54.14, -56.14) |
| CIE-LCH | lch(47.98, 77.99, 313.96°) |
| OKLab | oklab(57.5% 0.1197 -0.1587) |
| OKLCH | oklch(57.5% 0.199 307) |
| XYZ | xyz(27.3037, 16.7776, 62.7603) |
| Luminance | 0.1678 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 3.94
Purpley
#8756E4
ΔE00 4.83
Darkorchid
#9932CC
ΔE00 5.39
Amethyst
#9B5FC0
ΔE00 5.48
Deep Lavender
#8D5EB7
ΔE00 5.99
Purply
#983FB2
ΔE00 6.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#984ED2 #88D24E
analogous
#564ED2 #984ED2 #D24ECA
triadic
#984ED2 #D2984E #4ED298
tetradic
#984ED2 #D2564E #88D24E #4ECAD2
square
#984ED2 #D2564E #88D24E #4ECAD2
split-complementary
#984ED2 #CAD24E #4ED256
monochromatic
#592284 #7A2EB5 #984ED2 #B47FDE #D1B0EB
Accessibility & contrast
On white
4.82
#984ED2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.36
#984ED2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #984ED2
4.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##984ED2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##984ED2 | 1.00 | 4.82 | 4.36 | 4.82 |
| #FFFFFF | 4.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#3472CF
Tritanopia (blue-blind)
#8F6989
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #984ed2; /* rgb */ color: rgb(152, 78, 210); /* oklch */ color: oklch(57.5% 0.199 307.0);
Tailwind
colors: {
custom: {
50: '#ba84e0',
500: '#984ed2',
950: '#000000',
},
}SCSS
$custom: #984ed2; $custom-light: #ba84e0; $custom-dark: #000000;
JSON
{
"hex": "#984ed2",
"rgb": {
"r": 152,
"g": 78,
"b": 210
},
"hsl": {
"h": 273.636,
"s": 59.459,
"l": 56.471
},
"oklch": {
"l": 0.57497,
"c": 0.19878,
"h": 307
},
"luminance": 0.16777
}Semantic roles & 50–950 ramp
primary
#984ED2
secondary
#BBD9A3
accent
#E3458A
background
#FBF8FD
surface
#F7EFFB
border
#D0CAD4
text
#120B15
muted
#817C83