#B271C9#B271C9
#B271C9 is a light, vivid purple. Relative luminance 0.255; OKLCH L 65.1% C 0.144 H 316.8°. Best body text is #000000 at 6.10:1 contrast (WCAG AA passes).
Color values
| HEX | #B271C9 |
|---|---|
| RGB | rgb(178, 113, 201) |
| HSL | hsl(284, 45%, 62%) |
| HSV | hsv(284, 44%, 79%) |
| CMYK | cmyk(11.4%, 43.8%, 0%, 21.2%) |
| CIE-LAB | lab(57.55, 40.68, -35.62) |
| CIE-LCH | lch(57.55, 54.07, 318.79°) |
| OKLab | oklab(65.07% 0.1049 -0.0984) |
| OKLCH | oklch(65.07% 0.144 316.8) |
| XYZ | xyz(34.8063, 25.4933, 58.3342) |
| Luminance | 0.2549 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Soft Purple
#A66FB5
ΔE00 3.99
Wisteria
#A87DC2
ΔE00 4.42
Orchid (survey)
#C875C4
ΔE00 5.43
Deep Lilac
#966EBD
ΔE00 5.90
Mediumorchid
#BA55D3
ΔE00 6.73
Amethyst
#9B5FC0
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B271C9 #88C971
analogous
#8671C9 #B271C9 #C971B4
triadic
#B271C9 #C9B271 #71C9B2
tetradic
#B271C9 #C98671 #88C971 #71B4C9
square
#B271C9 #C98671 #88C971 #71B4C9
split-complementary
#B271C9 #B4C971 #71C986
monochromatic
#74358B #9946B7 #B271C9 #CA9DDA #E2CAEB
Accessibility & contrast
On white
3.44
#B271C9 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.10
#B271C9 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B271C9
6.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B271C9 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B271C9 | 1.00 | 3.44 | 6.10 | 6.10 |
| #FFFFFF | 3.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6286CC
Deuteranopia (green-blind)
#738CC6
Tritanopia (blue-blind)
#B17D93
Achromatopsia (no color)
#8A8A8A
Design tokens & code
CSS
--color: #b271c9; /* rgb */ color: rgb(178, 113, 201); /* oklch */ color: oklch(65.1% 0.144 316.8);
Tailwind
colors: {
custom: {
50: '#ca9bd9',
500: '#b271c9',
950: '#000000',
},
}SCSS
$custom: #b271c9; $custom-light: #ca9bd9; $custom-dark: #000000;
JSON
{
"hex": "#b271c9",
"rgb": {
"r": 178,
"g": 113,
"b": 201
},
"hsl": {
"h": 284.318,
"s": 44.898,
"l": 61.569
},
"oklch": {
"l": 0.65069,
"c": 0.14385,
"h": 316.8
},
"luminance": 0.25492
}Semantic roles & 50–950 ramp
primary
#B271C9
secondary
#C3DBBB
accent
#B82D52
background
#FCF9FD
surface
#F9F2FA
border
#D2CCD3
text
#130E15
muted
#827E83