#B162F8#B162F8
#B162F8 is a light, highly saturated violet. Relative luminance 0.249; OKLCH L 65.4% C 0.219 H 305.4°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #B162F8 |
|---|---|
| RGB | rgb(177, 98, 248) |
| HSL | hsl(272, 91%, 68%) |
| HSV | hsv(272, 60%, 97%) |
| CMYK | cmyk(28.6%, 60.5%, 0%, 2.7%) |
| CIE-LAB | lab(56.94, 58.54, -62.98) |
| CIE-LCH | lch(56.94, 85.99, 312.91°) |
| OKLab | oklab(65.4% 0.1267 -0.1781) |
| OKLCH | oklch(65.4% 0.219 305.4) |
| XYZ | xyz(39.4387, 24.8601, 91.5095) |
| Luminance | 0.2486 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 2.97
Lighter Purple
#A55AF4
ΔE00 3.06
Bright Lavender
#C760FF
ΔE00 3.69
Bright Lilac
#C95EFB
ΔE00 4.05
Easter Purple
#C071FE
ΔE00 4.51
Lightish Purple
#A552E6
ΔE00 5.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B162F8 #A9F862
analogous
#6662F8 #B162F8 #F862F4
triadic
#B162F8 #F8B162 #62F8B1
tetradic
#B162F8 #F86662 #A9F862 #62F4F8
square
#B162F8 #F86662 #A9F862 #62F4F8
split-complementary
#B162F8 #F4F862 #62F866
monochromatic
#750AD6 #9427F5 #B162F8 #CE9DFB #EBD7FD
Accessibility & contrast
On white
3.52
#B162F8 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.97
#B162F8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B162F8
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B162F8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B162F8 | 1.00 | 3.52 | 5.97 | 5.97 |
| #FFFFFF | 3.52 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.97 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.97 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B86FD
Deuteranopia (green-blind)
#4189F5
Tritanopia (blue-blind)
#A581A4
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #b162f8; /* rgb */ color: rgb(177, 98, 248); /* oklch */ color: oklch(65.4% 0.219 305.4);
Tailwind
colors: {
custom: {
50: '#cc92fb',
500: '#b162f8',
950: '#000000',
},
}SCSS
$custom: #b162f8; $custom-light: #cc92fb; $custom-dark: #000000;
JSON
{
"hex": "#b162f8",
"rgb": {
"r": 177,
"g": 98,
"b": 248
},
"hsl": {
"h": 271.6,
"s": 91.463,
"l": 67.843
},
"oklch": {
"l": 0.65396,
"c": 0.21858,
"h": 305.4
},
"luminance": 0.2486
}Semantic roles & 50–950 ramp
primary
#B162F8
secondary
#DAF2C4
accent
#E6006D
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140D17
muted
#837E85