#B178F2#B178F2
#B178F2 is a light, vivid violet. Relative luminance 0.292; OKLCH L 68.2% C 0.180 H 303.6°. Best body text is #000000 at 6.84:1 contrast (WCAG AA passes).
Color values
| HEX | #B178F2 |
|---|---|
| RGB | rgb(177, 120, 242) |
| HSL | hsl(268, 82%, 71%) |
| HSV | hsv(268, 50%, 95%) |
| CMYK | cmyk(26.9%, 50.4%, 0%, 5.1%) |
| CIE-LAB | lab(60.95, 45.72, -53.25) |
| CIE-LCH | lch(60.95, 70.18, 310.65°) |
| OKLab | oklab(68.23% 0.0993 -0.1497) |
| OKLCH | oklch(68.23% 0.18 303.6) |
| XYZ | xyz(40.8714, 29.1909, 87.4684) |
| Luminance | 0.2919 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 2.24
Light Purple
#BF77F6
ΔE00 2.54
Easter Purple
#C071FE
ΔE00 3.15
Bright Lavender
#C760FF
ΔE00 5.92
Liliac
#C48EFD
ΔE00 6.22
Bright Lilac
#C95EFB
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B178F2 #B9F278
analogous
#787CF2 #B178F2 #EE78F2
triadic
#B178F2 #F2B178 #78F2B1
tetradic
#B178F2 #F2787C #B9F278 #78F2EE
square
#B178F2 #F2787C #B9F278 #78F2EE
split-complementary
#B178F2 #F2EE78 #7CF278
monochromatic
#7115DB #9140ED #B178F2 #D1B0F7 #EFE3FC
Accessibility & contrast
On white
3.07
#B178F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.84
#B178F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B178F2
6.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B178F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B178F2 | 1.00 | 3.07 | 6.84 | 6.84 |
| #FFFFFF | 3.07 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.84 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.84 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5192F6
Deuteranopia (green-blind)
#6193EF
Tritanopia (blue-blind)
#A68EAA
Achromatopsia (no color)
#939393
Design tokens & code
CSS
--color: #b178f2; /* rgb */ color: rgb(177, 120, 242); /* oklch */ color: oklch(68.2% 0.180 303.6);
Tailwind
colors: {
custom: {
50: '#cba0f7',
500: '#b178f2',
950: '#000000',
},
}SCSS
$custom: #b178f2; $custom-light: #cba0f7; $custom-dark: #000000;
JSON
{
"hex": "#b178f2",
"rgb": {
"r": 177,
"g": 120,
"b": 242
},
"hsl": {
"h": 268.033,
"s": 82.432,
"l": 70.98
},
"oklch": {
"l": 0.68233,
"c": 0.17964,
"h": 303.6
},
"luminance": 0.29191
}Semantic roles & 50–950 ramp
primary
#B178F2
secondary
#E4F3D3
accent
#DF077A
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F17
muted
#827F85