#B398CD#B398CD
#B398CD is a light, moderate violet. Relative luminance 0.364; OKLCH L 72.2% C 0.081 H 307.6°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).
Color values
| HEX | #B398CD |
|---|---|
| RGB | rgb(179, 152, 205) |
| HSL | hsl(271, 35%, 70%) |
| HSV | hsv(271, 26%, 80%) |
| CMYK | cmyk(12.7%, 25.9%, 0%, 19.6%) |
| CIE-LAB | lab(66.86, 20.13, -23.47) |
| CIE-LCH | lch(66.86, 30.92, 310.62°) |
| OKLab | oklab(72.21% 0.0494 -0.0641) |
| OKLCH | oklch(72.21% 0.081 307.6) |
| XYZ | xyz(40.8361, 36.4482, 62.6297) |
| Luminance | 0.3645 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lavender
#B39DDB
ΔE00 3.27
Pale Purple
#B790D4
ΔE00 3.76
Lavender (survey)
#C79FEF
ΔE00 6.60
Lilac
#C8A2C8
ΔE00 6.65
Heather
#A484AC
ΔE00 7.57
Wisteria
#A87DC2
ΔE00 8.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B398CD #B2CD98
analogous
#9898CD #B398CD #CD98CD
triadic
#B398CD #CDB398 #98CDB3
tetradic
#B398CD #CD9898 #B2CD98 #98CDCD
square
#B398CD #CD9898 #B2CD98 #98CDCD
split-complementary
#B398CD #CDCD98 #98CD98
monochromatic
#764D9E #956FB9 #B398CD #D1C1E1 #F0EAF5
Accessibility & contrast
On white
2.53
#B398CD on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.29
#B398CD on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B398CD
8.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B398CD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B398CD | 1.00 | 2.53 | 8.29 | 8.29 |
| #FFFFFF | 2.53 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.29 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.29 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#8FA2CF
Deuteranopia (green-blind)
#94A3CB
Tritanopia (blue-blind)
#B09FAB
Achromatopsia (no color)
#A3A3A3
Design tokens & code
CSS
--color: #b398cd; /* rgb */ color: rgb(179, 152, 205); /* oklch */ color: oklch(72.2% 0.081 307.6);
Tailwind
colors: {
custom: {
50: '#cab6dc',
500: '#b398cd',
950: '#000000',
},
}SCSS
$custom: #b398cd; $custom-light: #cab6dc; $custom-dark: #000000;
JSON
{
"hex": "#b398cd",
"rgb": {
"r": 179,
"g": 152,
"b": 205
},
"hsl": {
"h": 270.566,
"s": 34.641,
"l": 70
},
"oklch": {
"l": 0.72213,
"c": 0.08088,
"h": 307.6
},
"luminance": 0.36448
}Semantic roles & 50–950 ramp
primary
#B398CD
secondary
#E0E8D9
accent
#AD3872
background
#FCFBFD
surface
#F8F6FB
border
#D1D0D4
text
#131115
muted
#828083