#B381F2#B381F2
#B381F2 is a light, vivid violet. Relative luminance 0.317; OKLCH L 69.9% C 0.166 H 302.8°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).
Color values
| HEX | #B381F2 |
|---|---|
| RGB | rgb(179, 129, 242) |
| HSL | hsl(267, 81%, 73%) |
| HSV | hsv(267, 47%, 95%) |
| CMYK | cmyk(26%, 46.7%, 0%, 5.1%) |
| CIE-LAB | lab(63.09, 41.33, -49.84) |
| CIE-LCH | lch(63.09, 64.75, 309.67°) |
| OKLab | oklab(69.87% 0.0899 -0.1397) |
| OKLCH | oklch(69.87% 0.166 302.8) |
| XYZ | xyz(42.4641, 31.6950, 87.8678) |
| Luminance | 0.3170 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.32
Liliac
#C48EFD
ΔE00 4.24
Light Urple
#B36FF6
ΔE00 4.49
Easter Purple
#C071FE
ΔE00 4.55
Baby Purple
#CA9BF7
ΔE00 7.56
Mediumpurple
#9370DB
ΔE00 7.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B381F2 #C0F281
analogous
#8187F2 #B381F2 #EC81F2
triadic
#B381F2 #F2B381 #81F2B3
tetradic
#B381F2 #F28187 #C0F281 #81F2EC
square
#B381F2 #F28187 #C0F281 #81F2EC
split-complementary
#B381F2 #F2EC81 #87F281
monochromatic
#7117E1 #924AEC #B381F2 #D4B8F8 #EEE3FC
Accessibility & contrast
On white
2.86
#B381F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.34
#B381F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B381F2
7.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B381F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B381F2 | 1.00 | 2.86 | 7.34 | 7.34 |
| #FFFFFF | 2.86 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.34 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.34 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6098F6
Deuteranopia (green-blind)
#6D98EF
Tritanopia (blue-blind)
#A895AE
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #b381f2; /* rgb */ color: rgb(179, 129, 242); /* oklch */ color: oklch(69.9% 0.166 302.8);
Tailwind
colors: {
custom: {
50: '#cca6f7',
500: '#b381f2',
950: '#000000',
},
}SCSS
$custom: #b381f2; $custom-light: #cca6f7; $custom-dark: #000000;
JSON
{
"hex": "#b381f2",
"rgb": {
"r": 179,
"g": 129,
"b": 242
},
"hsl": {
"h": 266.549,
"s": 81.295,
"l": 72.745
},
"oklch": {
"l": 0.69874,
"c": 0.16613,
"h": 302.8
},
"luminance": 0.31695
}Semantic roles & 50–950 ramp
primary
#B381F2
secondary
#E7F4D7
accent
#DE087F
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85