#B38EF2#B38EF2
#B38EF2 is a light, vivid violet. Relative luminance 0.353; OKLCH L 72.1% C 0.146 H 299.8°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).
Color values
| HEX | #B38EF2 |
|---|---|
| RGB | rgb(179, 142, 242) |
| HSL | hsl(262, 79%, 75%) |
| HSV | hsv(262, 41%, 95%) |
| CMYK | cmyk(26%, 41.3%, 0%, 5.1%) |
| CIE-LAB | lab(66.01, 34.12, -45.23) |
| CIE-LCH | lch(66.01, 56.66, 307.03°) |
| OKLab | oklab(72.07% 0.0724 -0.1263) |
| OKLCH | oklch(72.07% 0.146 299.8) |
| XYZ | xyz(44.2868, 35.3403, 88.4754) |
| Luminance | 0.3534 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.30
Baby Purple
#CA9BF7
ΔE00 5.19
Pastel Purple
#CAA0FF
ΔE00 5.59
Lavender (survey)
#C79FEF
ΔE00 6.15
Light Purple
#BF77F6
ΔE00 6.45
Lilac (survey)
#CEA2FD
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B38EF2 #CDF28E
analogous
#8E9BF2 #B38EF2 #E58EF2
triadic
#B38EF2 #F2B38E #8EF2B3
tetradic
#B38EF2 #F28E9B #CDF28E #8EF2E5
square
#B38EF2 #F28E9B #CDF28E #8EF2E5
split-complementary
#B38EF2 #F2E58E #9BF28E
monochromatic
#6920E5 #8E57EC #B38EF2 #D8C5F8 #EDE4FC
Accessibility & contrast
On white
2.60
#B38EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.07
#B38EF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B38EF2
8.07:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B38EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B38EF2 | 1.00 | 2.60 | 8.07 | 8.07 |
| #FFFFFF | 2.60 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.07 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.07 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#73A0F6
Deuteranopia (green-blind)
#7AA0EF
Tritanopia (blue-blind)
#A79FB4
Achromatopsia (no color)
#A0A0A0
Design tokens & code
CSS
--color: #b38ef2; /* rgb */ color: rgb(179, 142, 242); /* oklch */ color: oklch(72.1% 0.146 299.8);
Tailwind
colors: {
custom: {
50: '#ccaff7',
500: '#b38ef2',
950: '#000000',
},
}SCSS
$custom: #b38ef2; $custom-light: #ccaff7; $custom-dark: #000000;
JSON
{
"hex": "#b38ef2",
"rgb": {
"r": 179,
"g": 142,
"b": 242
},
"hsl": {
"h": 262.2,
"s": 79.365,
"l": 75.294
},
"oklch": {
"l": 0.72071,
"c": 0.14559,
"h": 299.8
},
"luminance": 0.35341
}Semantic roles & 50–950 ramp
primary
#B38EF2
secondary
#E9F4D7
accent
#DC0A8E
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#131017
muted
#827F85