#B28CDF#B28CDF
#B28CDF is a light, vivid violet. Relative luminance 0.335; OKLCH L 70.7% C 0.124 H 304.5°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).
Color values
| HEX | #B28CDF |
|---|---|
| RGB | rgb(178, 140, 223) |
| HSL | hsl(267, 56%, 71%) |
| HSV | hsv(267, 37%, 87%) |
| CMYK | cmyk(20.2%, 37.2%, 0%, 12.5%) |
| CIE-LAB | lab(64.60, 30.53, -36.96) |
| CIE-LCH | lch(64.60, 47.94, 309.56°) |
| OKLab | oklab(70.7% 0.0703 -0.1024) |
| OKLCH | oklch(70.7% 0.124 304.5) |
| XYZ | xyz(41.0547, 33.5490, 74.1105) |
| Luminance | 0.3355 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Pale Purple
#B790D4
ΔE00 3.45
Liliac
#C48EFD
ΔE00 5.18
Baby Purple
#CA9BF7
ΔE00 5.59
Lavender
#B39DDB
ΔE00 5.62
Lavender (survey)
#C79FEF
ΔE00 5.69
Wisteria
#A87DC2
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B28CDF #B9DF8C
analogous
#8C8FDF #B28CDF #DB8CDF
triadic
#B28CDF #DFB28C #8CDFB2
tetradic
#B28CDF #DF8C8F #B9DF8C #8CDFDB
square
#B28CDF #DF8C8F #B9DF8C #8CDFDB
split-complementary
#B28CDF #DFDB8C #8FDF8C
monochromatic
#7334BC #925CD2 #B28CDF #D2BCEC #EFE7F8
Accessibility & contrast
On white
2.72
#B28CDF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.71
#B28CDF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B28CDF
7.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B28CDF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B28CDF | 1.00 | 2.72 | 7.71 | 7.71 |
| #FFFFFF | 2.72 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.71 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.71 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#799CE2
Deuteranopia (green-blind)
#819DDD
Tritanopia (blue-blind)
#AB99AB
Achromatopsia (no color)
#9D9D9D
Design tokens & code
CSS
--color: #b28cdf; /* rgb */ color: rgb(178, 140, 223); /* oklch */ color: oklch(70.7% 0.124 304.5);
Tailwind
colors: {
custom: {
50: '#caaee9',
500: '#b28cdf',
950: '#000000',
},
}SCSS
$custom: #b28cdf; $custom-light: #caaee9; $custom-dark: #000000;
JSON
{
"hex": "#b28cdf",
"rgb": {
"r": 178,
"g": 140,
"b": 223
},
"hsl": {
"h": 267.47,
"s": 56.463,
"l": 71.176
},
"oklch": {
"l": 0.70702,
"c": 0.12425,
"h": 304.5
},
"luminance": 0.33549
}Semantic roles & 50–950 ramp
primary
#B28CDF
secondary
#E4EED8
accent
#C4217A
background
#FCFAFE
surface
#F8F4FD
border
#D1CED5
text
#131016
muted
#827F84