#B271C2#B271C2
#B271C2 is a light, vivid purple. Relative luminance 0.252; OKLCH L 64.7% C 0.136 H 319.5°. Best body text is #000000 at 6.03:1 contrast (WCAG AA passes).
Color values
| HEX | #B271C2 |
|---|---|
| RGB | rgb(178, 113, 194) |
| HSL | hsl(288, 40%, 60%) |
| HSV | hsv(288, 42%, 76%) |
| CMYK | cmyk(8.2%, 41.8%, 0%, 23.9%) |
| CIE-LAB | lab(57.24, 39.24, -32.12) |
| CIE-LCH | lch(57.24, 50.71, 320.70°) |
| OKLab | oklab(64.74% 0.1036 -0.0884) |
| OKLCH | oklch(64.74% 0.136 319.5) |
| XYZ | xyz(34.0016, 25.1714, 54.0959) |
| Luminance | 0.2517 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Soft Purple
#A66FB5
ΔE00 3.01
Wisteria
#A87DC2
ΔE00 4.23
Orchid (survey)
#C875C4
ΔE00 4.74
Deep Lilac
#966EBD
ΔE00 6.15
Dark Lilac
#9C6DA5
ΔE00 6.50
Orchid
#DA70D6
ΔE00 7.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B271C2 #81C271
analogous
#8971C2 #B271C2 #C271A9
triadic
#B271C2 #C2B271 #71C2B2
tetradic
#B271C2 #C28971 #81C271 #71A9C2
square
#B271C2 #C28971 #81C271 #71A9C2
split-complementary
#B271C2 #A9C271 #71C289
monochromatic
#733781 #994AAC #B271C2 #C99CD4 #E0C7E7
Accessibility & contrast
On white
3.48
#B271C2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.03
#B271C2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B271C2
6.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B271C2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B271C2 | 1.00 | 3.48 | 6.03 | 6.03 |
| #FFFFFF | 3.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.03 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.03 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6585C5
Deuteranopia (green-blind)
#768CC0
Tritanopia (blue-blind)
#B37B90
Achromatopsia (no color)
#898989
Design tokens & code
CSS
--color: #b271c2; /* rgb */ color: rgb(178, 113, 194); /* oklch */ color: oklch(64.7% 0.136 319.5);
Tailwind
colors: {
custom: {
50: '#ca9bd4',
500: '#b271c2',
950: '#000000',
},
}SCSS
$custom: #b271c2; $custom-light: #ca9bd4; $custom-dark: #000000;
JSON
{
"hex": "#b271c2",
"rgb": {
"r": 178,
"g": 113,
"b": 194
},
"hsl": {
"h": 288.148,
"s": 39.901,
"l": 60.196
},
"oklch": {
"l": 0.64735,
"c": 0.13617,
"h": 319.5
},
"luminance": 0.2517
}Semantic roles & 50–950 ramp
primary
#B271C2
secondary
#BED7B8
accent
#B3334C
background
#FCF9FD
surface
#F9F2FA
border
#D2CCD3
text
#130E14
muted
#827E83