#B781F6#B781F6
#B781F6 is a light, vivid violet. Relative luminance 0.324; OKLCH L 70.5% C 0.172 H 303.6°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).
Color values
| HEX | #B781F6 |
|---|---|
| RGB | rgb(183, 129, 246) |
| HSL | hsl(268, 87%, 74%) |
| HSV | hsv(268, 48%, 96%) |
| CMYK | cmyk(25.6%, 47.6%, 0%, 3.5%) |
| CIE-LAB | lab(63.69, 43.33, -51.07) |
| CIE-LCH | lch(63.69, 66.97, 310.31°) |
| OKLab | oklab(70.48% 0.0952 -0.1432) |
| OKLCH | oklch(70.48% 0.172 303.6) |
| XYZ | xyz(44.0096, 32.4217, 91.1104) |
| Luminance | 0.3242 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.86
Liliac
#C48EFD
ΔE00 3.78
Easter Purple
#C071FE
ΔE00 4.09
Light Urple
#B36FF6
ΔE00 4.44
Baby Purple
#CA9BF7
ΔE00 7.34
Bright Lavender
#C760FF
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B781F6 #C0F681
analogous
#8185F6 #B781F6 #F181F6
triadic
#B781F6 #F6B781 #81F6B7
tetradic
#B781F6 #F68185 #C0F681 #81F6F1
square
#B781F6 #F68185 #C0F681 #81F6F1
split-complementary
#B781F6 #F6F181 #85F681
monochromatic
#7611EC #9648F2 #B781F6 #D8BAFA #EFE2FD
Accessibility & contrast
On white
2.81
#B781F6 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.48
#B781F6 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B781F6
7.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B781F6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B781F6 | 1.00 | 2.81 | 7.48 | 7.48 |
| #FFFFFF | 2.81 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.48 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.48 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5F99FA
Deuteranopia (green-blind)
#6D9AF3
Tritanopia (blue-blind)
#AC96B0
Achromatopsia (no color)
#9A9A9A
Design tokens & code
CSS
--color: #b781f6; /* rgb */ color: rgb(183, 129, 246); /* oklch */ color: oklch(70.5% 0.172 303.6);
Tailwind
colors: {
custom: {
50: '#cfa7fa',
500: '#b781f6',
950: '#000000',
},
}SCSS
$custom: #b781f6; $custom-light: #cfa7fa; $custom-dark: #000000;
JSON
{
"hex": "#b781f6",
"rgb": {
"r": 183,
"g": 129,
"b": 246
},
"hsl": {
"h": 267.692,
"s": 86.667,
"l": 73.529
},
"oklch": {
"l": 0.70479,
"c": 0.17192,
"h": 303.6
},
"luminance": 0.32422
}Semantic roles & 50–950 ramp
primary
#B781F6
secondary
#E7F5D6
accent
#E3027B
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85