#B271E3#B271E3
#B271E3 is a light, vivid violet. Relative luminance 0.268; OKLCH L 66.4% C 0.173 H 308.7°. Best body text is #000000 at 6.36:1 contrast (WCAG AA passes).
Color values
| HEX | #B271E3 |
|---|---|
| RGB | rgb(178, 113, 227) |
| HSL | hsl(274, 67%, 67%) |
| HSV | hsv(274, 50%, 89%) |
| CMYK | cmyk(21.6%, 50.2%, 0%, 11%) |
| CIE-LAB | lab(58.81, 46.30, -48.30) |
| CIE-LCH | lch(58.81, 66.91, 313.79°) |
| OKLab | oklab(66.42% 0.1084 -0.1352) |
| OKLCH | oklch(66.42% 0.173 308.7) |
| XYZ | xyz(38.1277, 26.8218, 75.8267) |
| Luminance | 0.2682 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 2.99
Light Purple
#BF77F6
ΔE00 3.53
Easter Purple
#C071FE
ΔE00 4.16
Bright Lavender
#C760FF
ΔE00 5.48
Bright Lilac
#C95EFB
ΔE00 5.54
Mediumpurple
#9370DB
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B271E3 #A2E371
analogous
#7971E3 #B271E3 #E371DB
triadic
#B271E3 #E3B271 #71E3B2
tetradic
#B271E3 #E37971 #A2E371 #71DBE3
square
#B271E3 #E37971 #A2E371 #71DBE3
split-complementary
#B271E3 #DBE371 #71E379
monochromatic
#7724B6 #963ED9 #B271E3 #CEA4ED #E9D7F7
Accessibility & contrast
On white
3.30
#B271E3 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.36
#B271E3 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B271E3
6.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B271E3 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B271E3 | 1.00 | 3.30 | 6.36 | 6.36 |
| #FFFFFF | 3.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.36 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.36 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#528BE7
Deuteranopia (green-blind)
#658EE0
Tritanopia (blue-blind)
#AB84A0
Achromatopsia (no color)
#8D8D8D
Design tokens & code
CSS
--color: #b271e3; /* rgb */ color: rgb(178, 113, 227); /* oklch */ color: oklch(66.4% 0.173 308.7);
Tailwind
colors: {
custom: {
50: '#cb9cec',
500: '#b271e3',
950: '#000000',
},
}SCSS
$custom: #b271e3; $custom-light: #cb9cec; $custom-dark: #000000;
JSON
{
"hex": "#b271e3",
"rgb": {
"r": 178,
"g": 113,
"b": 227
},
"hsl": {
"h": 274.211,
"s": 67.059,
"l": 66.667
},
"oklch": {
"l": 0.66415,
"c": 0.17329,
"h": 308.7
},
"luminance": 0.26821
}Semantic roles & 50–950 ramp
primary
#B271E3
secondary
#D5EAC6
accent
#CF1766
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E16
muted
#827E84