#B796E2#B796E2
#B796E2 is a light, moderate violet. Relative luminance 0.374; OKLCH L 73.1% C 0.113 H 303.7°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).
Color values
| HEX | #B796E2 |
|---|---|
| RGB | rgb(183, 150, 226) |
| HSL | hsl(266, 57%, 74%) |
| HSV | hsv(266, 34%, 89%) |
| CMYK | cmyk(19%, 33.6%, 0%, 11.4%) |
| CIE-LAB | lab(67.55, 27.11, -33.99) |
| CIE-LCH | lch(67.55, 43.48, 308.57°) |
| OKLab | oklab(73.1% 0.0625 -0.0939) |
| OKLCH | oklch(73.1% 0.113 303.7) |
| XYZ | xyz(44.1594, 37.3711, 76.8237) |
| Luminance | 0.3737 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Pale Purple
#B790D4
ΔE00 3.11
Lavender
#B39DDB
ΔE00 3.25
Lavender (survey)
#C79FEF
ΔE00 3.44
Baby Purple
#CA9BF7
ΔE00 4.24
Pastel Purple
#CAA0FF
ΔE00 5.12
Lilac (survey)
#CEA2FD
ΔE00 5.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B796E2 #C1E296
analogous
#969BE2 #B796E2 #DD96E2
triadic
#B796E2 #E2B796 #96E2B7
tetradic
#B796E2 #E2969B #C1E296 #96E2DD
square
#B796E2 #E2969B #C1E296 #96E2DD
split-complementary
#B796E2 #E2DD96 #9BE296
monochromatic
#7537C7 #9666D5 #B796E2 #D8C6EF #EFE7F8
Accessibility & contrast
On white
2.48
#B796E2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.47
#B796E2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B796E2
8.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B796E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B796E2 | 1.00 | 2.48 | 8.47 | 8.47 |
| #FFFFFF | 2.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.47 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.47 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#86A4E5
Deuteranopia (green-blind)
#8CA5E0
Tritanopia (blue-blind)
#B0A2B2
Achromatopsia (no color)
#A4A4A4
Design tokens & code
CSS
--color: #b796e2; /* rgb */ color: rgb(183, 150, 226); /* oklch */ color: oklch(73.1% 0.113 303.7);
Tailwind
colors: {
custom: {
50: '#cdb5eb',
500: '#b796e2',
950: '#000000',
},
}SCSS
$custom: #b796e2; $custom-light: #cdb5eb; $custom-dark: #000000;
JSON
{
"hex": "#b796e2",
"rgb": {
"r": 183,
"g": 150,
"b": 226
},
"hsl": {
"h": 266.053,
"s": 56.716,
"l": 73.725
},
"oklch": {
"l": 0.73099,
"c": 0.1128,
"h": 303.7
},
"luminance": 0.37371
}Semantic roles & 50–950 ramp
primary
#B796E2
secondary
#E7F0DB
accent
#C4217D
background
#FCFBFE
surface
#F9F6FD
border
#D2D0D5
text
#131116
muted
#828084