#B18BF2#B18BF2
#B18BF2 is a light, vivid violet. Relative luminance 0.342; OKLCH L 71.4% C 0.150 H 299.6°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).
Color values
| HEX | #B18BF2 |
|---|---|
| RGB | rgb(177, 139, 242) |
| HSL | hsl(262, 80%, 75%) |
| HSV | hsv(262, 43%, 95%) |
| CMYK | cmyk(26.9%, 42.6%, 0%, 5.1%) |
| CIE-LAB | lab(65.14, 35.25, -46.62) |
| CIE-LCH | lch(65.14, 58.44, 307.09°) |
| OKLab | oklab(71.37% 0.0741 -0.1304) |
| OKLCH | oklch(71.37% 0.15 299.6) |
| XYZ | xyz(43.3874, 34.2229, 88.3071) |
| Luminance | 0.3422 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.56
Light Purple
#BF77F6
ΔE00 5.88
Baby Purple
#CA9BF7
ΔE00 5.94
Pastel Purple
#CAA0FF
ΔE00 6.37
Lavender (survey)
#C79FEF
ΔE00 6.96
Pale Purple
#B790D4
ΔE00 7.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B18BF2 #CCF28B
analogous
#8B99F2 #B18BF2 #E58BF2
triadic
#B18BF2 #F2B18B #8BF2B1
tetradic
#B18BF2 #F28B99 #CCF28B #8BF2E5
square
#B18BF2 #F28B99 #CCF28B #8BF2E5
split-complementary
#B18BF2 #F2E58B #99F28B
monochromatic
#671DE6 #8C54EC #B18BF2 #D6C2F8 #ECE3FC
Accessibility & contrast
On white
2.68
#B18BF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.84
#B18BF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B18BF2
7.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B18BF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B18BF2 | 1.00 | 2.68 | 7.84 | 7.84 |
| #FFFFFF | 2.68 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.84 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.84 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6E9EF6
Deuteranopia (green-blind)
#769DEF
Tritanopia (blue-blind)
#A49DB3
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #b18bf2; /* rgb */ color: rgb(177, 139, 242); /* oklch */ color: oklch(71.4% 0.150 299.6);
Tailwind
colors: {
custom: {
50: '#caadf7',
500: '#b18bf2',
950: '#000000',
},
}SCSS
$custom: #b18bf2; $custom-light: #caadf7; $custom-dark: #000000;
JSON
{
"hex": "#b18bf2",
"rgb": {
"r": 177,
"g": 139,
"b": 242
},
"hsl": {
"h": 262.136,
"s": 79.845,
"l": 74.706
},
"oklch": {
"l": 0.71368,
"c": 0.14998,
"h": 299.6
},
"luminance": 0.34223
}Semantic roles & 50–950 ramp
primary
#B18BF2
secondary
#E9F4D7
accent
#DC098E
background
#FCFAFF
surface
#F9F4FE
border
#D2CED6
text
#131017
muted
#827F85