#B299EC#B299EC
#B299EC is a light, vivid violet. Relative luminance 0.383; OKLCH L 73.7% C 0.120 H 297.2°. Best body text is #000000 at 8.66:1 contrast (WCAG AA passes).
Color values
| HEX | #B299EC |
|---|---|
| RGB | rgb(178, 153, 236) |
| HSL | hsl(258, 69%, 76%) |
| HSV | hsv(258, 35%, 93%) |
| CMYK | cmyk(24.6%, 35.2%, 0%, 7.5%) |
| CIE-LAB | lab(68.24, 26.26, -38.45) |
| CIE-LCH | lch(68.24, 46.56, 304.33°) |
| OKLab | oklab(73.66% 0.0549 -0.1068) |
| OKLCH | oklch(73.66% 0.12 297.2) |
| XYZ | xyz(44.8882, 38.3032, 84.3690) |
| Luminance | 0.3830 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lavender
#B39DDB
ΔE00 4.27
Lavender (survey)
#C79FEF
ΔE00 4.52
Pastel Purple
#CAA0FF
ΔE00 4.75
Baby Purple
#CA9BF7
ΔE00 4.81
Lilac (survey)
#CEA2FD
ΔE00 5.42
Liliac
#C48EFD
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B299EC #D3EC99
analogous
#99AAEC #B299EC #DC99EC
triadic
#B299EC #ECB299 #99ECB2
tetradic
#B299EC #EC99AA #D3EC99 #99ECDC
square
#B299EC #EC99AA #D3EC99 #99ECDC
split-complementary
#B299EC #ECDC99 #AAEC99
monochromatic
#6432D9 #8B65E2 #B299EC #D9CDF6 #ECE5FA
Accessibility & contrast
On white
2.42
#B299EC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.66
#B299EC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B299EC
8.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B299EC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B299EC | 1.00 | 2.42 | 8.66 | 8.66 |
| #FFFFFF | 2.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.66 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.66 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#84A7EF
Deuteranopia (green-blind)
#88A5EA
Tritanopia (blue-blind)
#A7A7B8
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #b299ec; /* rgb */ color: rgb(178, 153, 236); /* oklch */ color: oklch(73.7% 0.120 297.2);
Tailwind
colors: {
custom: {
50: '#cab7f2',
500: '#b299ec',
950: '#000000',
},
}SCSS
$custom: #b299ec; $custom-light: #cab7f2; $custom-dark: #000000;
JSON
{
"hex": "#b299ec",
"rgb": {
"r": 178,
"g": 153,
"b": 236
},
"hsl": {
"h": 258.072,
"s": 68.595,
"l": 76.275
},
"oklch": {
"l": 0.73656,
"c": 0.12008,
"h": 297.2
},
"luminance": 0.38304
}Semantic roles & 50–950 ramp
primary
#B299EC
secondary
#EAF2D9
accent
#D11598
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131117
muted
#828085