#987CF2#987CF2
#987CF2 is a light, vivid violet. Relative luminance 0.275; OKLCH L 66.5% C 0.170 H 292.1°. Best body text is #000000 at 6.50:1 contrast (WCAG AA passes).
Color values
| HEX | #987CF2 |
|---|---|
| RGB | rgb(152, 124, 242) |
| HSL | hsl(254, 82%, 72%) |
| HSV | hsv(254, 49%, 95%) |
| CMYK | cmyk(37.2%, 48.8%, 0%, 5.1%) |
| CIE-LAB | lab(59.43, 37.21, -55.80) |
| CIE-LCH | lch(59.43, 67.07, 303.70°) |
| OKLab | oklab(66.54% 0.0639 -0.1578) |
| OKLCH | oklch(66.54% 0.17 292.1) |
| XYZ | xyz(36.1793, 27.5006, 87.3891) |
| Luminance | 0.2750 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 3.52
Mediumpurple
#9370DB
ΔE00 4.80
Lavender Blue
#8B88F8
ΔE00 5.05
Perrywinkle
#8F8CE7
ΔE00 5.89
Light Urple
#B36FF6
ΔE00 6.22
Mediumslateblue
#7B68EE
ΔE00 7.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#987CF2 #D6F27C
analogous
#7C9BF2 #987CF2 #D37CF2
triadic
#987CF2 #F2987C #7CF298
tetradic
#987CF2 #F27C9B #D6F27C #7CF2D3
square
#987CF2 #F27C9B #D6F27C #7CF2D3
split-complementary
#987CF2 #F2D37C #9BF27C
monochromatic
#4516DE #6C44EC #987CF2 #C4B4F8 #E9E3FC
Accessibility & contrast
On white
3.23
#987CF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.50
#987CF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #987CF2
6.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##987CF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##987CF2 | 1.00 | 3.23 | 6.50 | 6.50 |
| #FFFFFF | 3.23 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.50 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.50 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F91F6
Deuteranopia (green-blind)
#538DEF
Tritanopia (blue-blind)
#8194AC
Achromatopsia (no color)
#8F8F8F
Design tokens & code
CSS
--color: #987cf2; /* rgb */ color: rgb(152, 124, 242); /* oklch */ color: oklch(66.5% 0.170 292.1);
Tailwind
colors: {
custom: {
50: '#baa2f7',
500: '#987cf2',
950: '#000000',
},
}SCSS
$custom: #987cf2; $custom-light: #baa2f7; $custom-dark: #000000;
JSON
{
"hex": "#987cf2",
"rgb": {
"r": 152,
"g": 124,
"b": 242
},
"hsl": {
"h": 254.237,
"s": 81.944,
"l": 71.765
},
"oklch": {
"l": 0.66543,
"c": 0.17025,
"h": 292.1
},
"luminance": 0.27502
}Semantic roles & 50–950 ramp
primary
#987CF2
secondary
#EDF4D6
accent
#DE07AB
background
#FBFAFF
surface
#F7F3FF
border
#D0CDD7
text
#120F17
muted
#817F85