#B28FF2#B28FF2
#B28FF2 is a light, vivid violet. Relative luminance 0.355; OKLCH L 72.2% C 0.144 H 299.1°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).
Color values
| HEX | #B28FF2 |
|---|---|
| RGB | rgb(178, 143, 242) |
| HSL | hsl(261, 79%, 75%) |
| HSV | hsv(261, 41%, 95%) |
| CMYK | cmyk(26.4%, 40.9%, 0%, 5.1%) |
| CIE-LAB | lab(66.15, 33.29, -45.02) |
| CIE-LCH | lch(66.15, 55.99, 306.48°) |
| OKLab | oklab(72.15% 0.0699 -0.1257) |
| OKLCH | oklch(72.15% 0.144 299.1) |
| XYZ | xyz(44.2059, 35.5204, 88.5144) |
| Luminance | 0.3552 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.57
Baby Purple
#CA9BF7
ΔE00 5.24
Pastel Purple
#CAA0FF
ΔE00 5.54
Lavender (survey)
#C79FEF
ΔE00 6.12
Lilac (survey)
#CEA2FD
ΔE00 6.45
Pale Purple
#B790D4
ΔE00 6.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B28FF2 #CFF28F
analogous
#8F9DF2 #B28FF2 #E38FF2
triadic
#B28FF2 #F2B28F #8FF2B2
tetradic
#B28FF2 #F28F9D #CFF28F #8FF2E3
square
#B28FF2 #F28F9D #CFF28F #8FF2E3
split-complementary
#B28FF2 #F2E38F #9DF28F
monochromatic
#6721E5 #8C58EC #B28FF2 #D8C6F8 #ECE4FC
Accessibility & contrast
On white
2.59
#B28FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.10
#B28FF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B28FF2
8.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B28FF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B28FF2 | 1.00 | 2.59 | 8.10 | 8.10 |
| #FFFFFF | 2.59 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#74A1F6
Deuteranopia (green-blind)
#7BA0EF
Tritanopia (blue-blind)
#A6A0B5
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #b28ff2; /* rgb */ color: rgb(178, 143, 242); /* oklch */ color: oklch(72.2% 0.144 299.1);
Tailwind
colors: {
custom: {
50: '#cbb0f7',
500: '#b28ff2',
950: '#000000',
},
}SCSS
$custom: #b28ff2; $custom-light: #cbb0f7; $custom-dark: #000000;
JSON
{
"hex": "#b28ff2",
"rgb": {
"r": 178,
"g": 143,
"b": 242
},
"hsl": {
"h": 261.212,
"s": 79.2,
"l": 75.49
},
"oklch": {
"l": 0.72154,
"c": 0.14383,
"h": 299.1
},
"luminance": 0.35521
}Semantic roles & 50–950 ramp
primary
#B28FF2
secondary
#EAF4D7
accent
#DB0A91
background
#FCFAFF
surface
#F9F5FE
border
#D2CFD6
text
#131017
muted
#827F85