#B998F9#B998F9
#B998F9 is a light, vivid violet. Relative luminance 0.396; OKLCH L 74.7% C 0.140 H 298.6°. Best body text is #000000 at 8.92:1 contrast (WCAG AA passes).
Color values
| HEX | #B998F9 |
|---|---|
| RGB | rgb(185, 152, 249) |
| HSL | hsl(260, 89%, 79%) |
| HSV | hsv(260, 39%, 98%) |
| CMYK | cmyk(25.7%, 39%, 0%, 2.4%) |
| CIE-LAB | lab(69.19, 31.88, -44.03) |
| CIE-LCH | lch(69.19, 54.36, 305.91°) |
| OKLab | oklab(74.71% 0.067 -0.1227) |
| OKLCH | oklch(74.71% 0.14 298.6) |
| XYZ | xyz(48.3308, 39.6100, 94.7034) |
| Luminance | 0.3961 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Pastel Purple
#CAA0FF
ΔE00 3.46
Liliac
#C48EFD
ΔE00 3.78
Baby Purple
#CA9BF7
ΔE00 3.81
Lilac (survey)
#CEA2FD
ΔE00 4.48
Lavender (survey)
#C79FEF
ΔE00 4.62
Lavender
#B39DDB
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B998F9 #D8F998
analogous
#98A7F9 #B998F9 #E998F9
triadic
#B998F9 #F9B998 #98F9B9
tetradic
#B998F9 #F998A7 #D8F998 #98F9E9
square
#B998F9 #F998A7 #D8F998 #98F9E9
split-complementary
#B998F9 #F9E998 #A7F998
monochromatic
#6A24F2 #925EF6 #B998F9 #E0D2FC #EBE2FD
Accessibility & contrast
On white
2.35
#B998F9 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.92
#B998F9 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B998F9
8.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B998F9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B998F9 | 1.00 | 2.35 | 8.92 | 8.92 |
| #FFFFFF | 2.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.92 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.92 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7EA9FD
Deuteranopia (green-blind)
#84A8F6
Tritanopia (blue-blind)
#ADA8BD
Achromatopsia (no color)
#A9A9A9
Design tokens & code
CSS
--color: #b998f9; /* rgb */ color: rgb(185, 152, 249); /* oklch */ color: oklch(74.7% 0.140 298.6);
Tailwind
colors: {
custom: {
50: '#d0b6fb',
500: '#b998f9',
950: '#000000',
},
}SCSS
$custom: #b998f9; $custom-light: #d0b6fb; $custom-dark: #000000;
JSON
{
"hex": "#b998f9",
"rgb": {
"r": 185,
"g": 152,
"b": 249
},
"hsl": {
"h": 260.412,
"s": 88.991,
"l": 78.627
},
"oklch": {
"l": 0.7471,
"c": 0.13985,
"h": 298.6
},
"luminance": 0.3961
}Semantic roles & 50–950 ramp
primary
#B998F9
secondary
#EBF5D6
accent
#E60097
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085