#B478F2#B478F2
#B478F2 is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.5% C 0.180 H 304.8°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).
Color values
| HEX | #B478F2 |
|---|---|
| RGB | rgb(180, 120, 242) |
| HSL | hsl(270, 82%, 71%) |
| HSV | hsv(270, 50%, 95%) |
| CMYK | cmyk(25.6%, 50.4%, 0%, 5.1%) |
| CIE-LAB | lab(61.26, 46.49, -52.73) |
| CIE-LCH | lch(61.26, 70.30, 311.40°) |
| OKLab | oklab(68.54% 0.103 -0.1481) |
| OKLCH | oklch(68.54% 0.18 304.8) |
| XYZ | xyz(41.5624, 29.5473, 87.5008) |
| Luminance | 0.2955 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 1.98
Light Urple
#B36FF6
ΔE00 2.27
Easter Purple
#C071FE
ΔE00 2.78
Bright Lavender
#C760FF
ΔE00 5.64
Liliac
#C48EFD
ΔE00 5.95
Bright Lilac
#C95EFB
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B478F2 #B6F278
analogous
#7879F2 #B478F2 #F178F2
triadic
#B478F2 #F2B478 #78F2B4
tetradic
#B478F2 #F27879 #B6F278 #78F2F1
square
#B478F2 #F27879 #B6F278 #78F2F1
split-complementary
#B478F2 #F2F178 #79F278
monochromatic
#7615DB #9540ED #B478F2 #D3B0F7 #EFE3FC
Accessibility & contrast
On white
3.04
#B478F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.91
#B478F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B478F2
6.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B478F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B478F2 | 1.00 | 3.04 | 6.91 | 6.91 |
| #FFFFFF | 3.04 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.91 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.91 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5292F6
Deuteranopia (green-blind)
#6494EF
Tritanopia (blue-blind)
#AA8EAA
Achromatopsia (no color)
#949494
Design tokens & code
CSS
--color: #b478f2; /* rgb */ color: rgb(180, 120, 242); /* oklch */ color: oklch(68.5% 0.180 304.8);
Tailwind
colors: {
custom: {
50: '#cda0f7',
500: '#b478f2',
950: '#000000',
},
}SCSS
$custom: #b478f2; $custom-light: #cda0f7; $custom-dark: #000000;
JSON
{
"hex": "#b478f2",
"rgb": {
"r": 180,
"g": 120,
"b": 242
},
"hsl": {
"h": 269.508,
"s": 82.432,
"l": 70.98
},
"oklch": {
"l": 0.68535,
"c": 0.18038,
"h": 304.8
},
"luminance": 0.29547
}Semantic roles & 50–950 ramp
primary
#B478F2
secondary
#E3F3D3
accent
#DF0775
background
#FCFAFF
surface
#F9F3FF
border
#D2CDD7
text
#140F17
muted
#827F85