#B18EF2#B18EF2
#B18EF2 is a light, vivid violet. Relative luminance 0.351; OKLCH L 71.9% C 0.145 H 298.8°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).
Color values
| HEX | #B18EF2 |
|---|---|
| RGB | rgb(177, 142, 242) |
| HSL | hsl(261, 79%, 75%) |
| HSV | hsv(261, 41%, 95%) |
| CMYK | cmyk(26.9%, 41.3%, 0%, 5.1%) |
| CIE-LAB | lab(65.83, 33.57, -45.53) |
| CIE-LCH | lch(65.83, 56.57, 306.40°) |
| OKLab | oklab(71.89% 0.0701 -0.1272) |
| OKLCH | oklch(71.89% 0.145 298.8) |
| XYZ | xyz(43.8278, 35.1036, 88.4538) |
| Luminance | 0.3510 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.68
Baby Purple
#CA9BF7
ΔE00 5.53
Pastel Purple
#CAA0FF
ΔE00 5.84
Lavender (survey)
#C79FEF
ΔE00 6.43
Light Purple
#BF77F6
ΔE00 6.66
Lilac (survey)
#CEA2FD
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B18EF2 #CFF28E
analogous
#8E9DF2 #B18EF2 #E38EF2
triadic
#B18EF2 #F2B18E #8EF2B1
tetradic
#B18EF2 #F28E9D #CFF28E #8EF2E3
square
#B18EF2 #F28E9D #CFF28E #8EF2E3
split-complementary
#B18EF2 #F2E38E #9DF28E
monochromatic
#6520E5 #8B57EC #B18EF2 #D7C5F8 #ECE4FC
Accessibility & contrast
On white
2.62
#B18EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.02
#B18EF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B18EF2
8.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B18EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B18EF2 | 1.00 | 2.62 | 8.02 | 8.02 |
| #FFFFFF | 2.62 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.02 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.02 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#72A0F6
Deuteranopia (green-blind)
#799FEF
Tritanopia (blue-blind)
#A49FB4
Achromatopsia (no color)
#A0A0A0
Design tokens & code
CSS
--color: #b18ef2; /* rgb */ color: rgb(177, 142, 242); /* oklch */ color: oklch(71.9% 0.145 298.8);
Tailwind
colors: {
custom: {
50: '#caaff7',
500: '#b18ef2',
950: '#000000',
},
}SCSS
$custom: #b18ef2; $custom-light: #caaff7; $custom-dark: #000000;
JSON
{
"hex": "#b18ef2",
"rgb": {
"r": 177,
"g": 142,
"b": 242
},
"hsl": {
"h": 261,
"s": 79.365,
"l": 75.294
},
"oklch": {
"l": 0.71889,
"c": 0.14525,
"h": 298.8
},
"luminance": 0.35104
}Semantic roles & 50–950 ramp
primary
#B18EF2
secondary
#EAF4D7
accent
#DC0A92
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#131017
muted
#827F85