#B271F2#B271F2
#B271F2 is a light, vivid violet. Relative luminance 0.277; OKLCH L 67.3% C 0.191 H 305.1°. Best body text is #000000 at 6.54:1 contrast (WCAG AA passes).
Color values
| HEX | #B271F2 |
|---|---|
| RGB | rgb(178, 113, 242) |
| HSL | hsl(270, 83%, 70%) |
| HSV | hsv(270, 53%, 95%) |
| CMYK | cmyk(26.4%, 53.3%, 0%, 5.1%) |
| CIE-LAB | lab(59.60, 49.71, -55.38) |
| CIE-LCH | lch(59.60, 74.42, 311.91°) |
| OKLab | oklab(67.26% 0.1096 -0.1559) |
| OKLCH | oklch(67.26% 0.191 305.1) |
| XYZ | xyz(40.2888, 27.6863, 87.2087) |
| Luminance | 0.2769 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 0.73
Easter Purple
#C071FE
ΔE00 2.64
Light Purple
#BF77F6
ΔE00 2.80
Bright Lavender
#C760FF
ΔE00 4.57
Bright Lilac
#C95EFB
ΔE00 4.97
Lighter Purple
#A55AF4
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B271F2 #B1F271
analogous
#7271F2 #B271F2 #F271F1
triadic
#B271F2 #F2B271 #71F2B2
tetradic
#B271F2 #F27271 #B1F271 #71F1F2
square
#B271F2 #F27271 #B1F271 #71F1F2
split-complementary
#B271F2 #F1F271 #71F272
monochromatic
#7514D5 #9439ED #B271F2 #D0A9F7 #EFE1FC
Accessibility & contrast
On white
3.21
#B271F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.54
#B271F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B271F2
6.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B271F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B271F2 | 1.00 | 3.21 | 6.54 | 6.54 |
| #FFFFFF | 3.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.54 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.54 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#458EF6
Deuteranopia (green-blind)
#5A90EF
Tritanopia (blue-blind)
#A789A7
Achromatopsia (no color)
#909090
Design tokens & code
CSS
--color: #b271f2; /* rgb */ color: rgb(178, 113, 242); /* oklch */ color: oklch(67.3% 0.191 305.1);
Tailwind
colors: {
custom: {
50: '#cc9cf7',
500: '#b271f2',
950: '#000000',
},
}SCSS
$custom: #b271f2; $custom-light: #cc9cf7; $custom-dark: #000000;
JSON
{
"hex": "#b271f2",
"rgb": {
"r": 178,
"g": 113,
"b": 242
},
"hsl": {
"h": 270.233,
"s": 83.226,
"l": 69.608
},
"oklch": {
"l": 0.67261,
"c": 0.19052,
"h": 305.1
},
"luminance": 0.27686
}Semantic roles & 50–950 ramp
primary
#B271F2
secondary
#DFF2CD
accent
#E00672
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85