#B795F8#B795F8
#B795F8 is a light, vivid violet. Relative luminance 0.383; OKLCH L 74.0% C 0.143 H 298.7°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).
Color values
| HEX | #B795F8 |
|---|---|
| RGB | rgb(183, 149, 248) |
| HSL | hsl(261, 88%, 78%) |
| HSV | hsv(261, 40%, 97%) |
| CMYK | cmyk(26.2%, 39.9%, 0%, 2.7%) |
| CIE-LAB | lab(68.27, 32.76, -44.94) |
| CIE-LCH | lch(68.27, 55.61, 306.09°) |
| OKLab | oklab(73.95% 0.0686 -0.1254) |
| OKLCH | oklch(73.95% 0.143 298.7) |
| XYZ | xyz(47.2152, 38.3392, 93.7015) |
| Luminance | 0.3834 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.45
Pastel Purple
#CAA0FF
ΔE00 4.09
Baby Purple
#CA9BF7
ΔE00 4.22
Lilac (survey)
#CEA2FD
ΔE00 5.10
Lavender (survey)
#C79FEF
ΔE00 5.14
Lavender
#B39DDB
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B795F8 #D6F895
analogous
#95A4F8 #B795F8 #E895F8
triadic
#B795F8 #F8B795 #95F8B7
tetradic
#B795F8 #F895A4 #D6F895 #95F8E8
square
#B795F8 #F895A4 #D6F895 #95F8E8
split-complementary
#B795F8 #F8E895 #A4F895
monochromatic
#6922F0 #905CF4 #B795F8 #DECEFC #ECE2FD
Accessibility & contrast
On white
2.42
#B795F8 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.67
#B795F8 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B795F8
8.67:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B795F8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B795F8 | 1.00 | 2.42 | 8.67 | 8.67 |
| #FFFFFF | 2.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.67 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.67 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#7AA6FC
Deuteranopia (green-blind)
#81A6F5
Tritanopia (blue-blind)
#AAA6BB
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #b795f8; /* rgb */ color: rgb(183, 149, 248); /* oklch */ color: oklch(74.0% 0.143 298.7);
Tailwind
colors: {
custom: {
50: '#ceb4fb',
500: '#b795f8',
950: '#000000',
},
}SCSS
$custom: #b795f8; $custom-light: #ceb4fb; $custom-dark: #000000;
JSON
{
"hex": "#b795f8",
"rgb": {
"r": 183,
"g": 149,
"b": 248
},
"hsl": {
"h": 260.606,
"s": 87.611,
"l": 77.843
},
"oklch": {
"l": 0.73954,
"c": 0.14296,
"h": 298.7
},
"luminance": 0.38339
}Semantic roles & 50–950 ramp
primary
#B795F8
secondary
#EAF5D6
accent
#E40196
background
#FCFBFF
surface
#F9F6FF
border
#D2D0D7
text
#141117
muted
#828085