#B157F4#B157F4
#B157F4 is a light, highly saturated violet. Relative luminance 0.227; OKLCH L 63.7% C 0.229 H 307.4°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).
Color values
| HEX | #B157F4 |
|---|---|
| RGB | rgb(177, 87, 244) |
| HSL | hsl(274, 88%, 65%) |
| HSV | hsv(274, 64%, 96%) |
| CMYK | cmyk(27.5%, 64.3%, 0%, 4.3%) |
| CIE-LAB | lab(54.76, 62.92, -64.27) |
| CIE-LCH | lch(54.76, 89.94, 314.39°) |
| OKLab | oklab(63.74% 0.1393 -0.1819) |
| OKLCH | oklch(63.74% 0.229 307.4) |
| XYZ | xyz(37.8654, 22.6956, 87.9563) |
| Luminance | 0.2270 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 2.09
Lightish Purple
#A552E6
ΔE00 3.24
Bright Lavender
#C760FF
ΔE00 4.75
Bright Lilac
#C95EFB
ΔE00 4.79
Light Urple
#B36FF6
ΔE00 5.29
Mediumorchid
#BA55D3
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B157F4 #9AF457
analogous
#6357F4 #B157F4 #F457E8
triadic
#B157F4 #F4B157 #57F4B1
tetradic
#B157F4 #F46357 #9AF457 #57E8F4
square
#B157F4 #F46357 #9AF457 #57E8F4
split-complementary
#B157F4 #E8F457 #57F463
monochromatic
#760DC4 #961EF0 #B157F4 #CC90F8 #E6CAFC
Accessibility & contrast
On white
3.79
#B157F4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.54
#B157F4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B157F4
5.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B157F4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B157F4 | 1.00 | 3.79 | 5.54 | 5.54 |
| #FFFFFF | 3.79 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.54 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.54 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0080F9
Deuteranopia (green-blind)
#3684F0
Tritanopia (blue-blind)
#A6789E
Achromatopsia (no color)
#838383
Design tokens & code
CSS
--color: #b157f4; /* rgb */ color: rgb(177, 87, 244); /* oklch */ color: oklch(63.7% 0.229 307.4);
Tailwind
colors: {
custom: {
50: '#cd8cf9',
500: '#b157f4',
950: '#000000',
},
}SCSS
$custom: #b157f4; $custom-light: #cd8cf9; $custom-dark: #000000;
JSON
{
"hex": "#b157f4",
"rgb": {
"r": 177,
"g": 87,
"b": 244
},
"hsl": {
"h": 274.395,
"s": 87.709,
"l": 64.902
},
"oklch": {
"l": 0.63739,
"c": 0.22907,
"h": 307.4
},
"luminance": 0.22695
}Semantic roles & 50–950 ramp
primary
#B157F4
secondary
#CFEEB9
accent
#E40162
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C17
muted
#837D85