#D271F2#D271F2
#D271F2 is a light, highly saturated purple. Relative luminance 0.319; OKLCH L 70.8% C 0.202 H 317.1°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).
Color values
| HEX | #D271F2 |
|---|---|
| RGB | rgb(210, 113, 242) |
| HSL | hsl(285, 83%, 70%) |
| HSV | hsv(285, 53%, 95%) |
| CMYK | cmyk(13.2%, 53.3%, 0%, 5.1%) |
| CIE-LAB | lab(63.28, 57.85, -49.32) |
| CIE-LCH | lch(63.28, 76.02, 319.55°) |
| OKLab | oklab(70.78% 0.148 -0.1373) |
| OKLCH | oklch(70.78% 0.202 317.1) |
| XYZ | xyz(48.5082, 31.9244, 87.5940) |
| Luminance | 0.3192 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.84
Easter Purple
#C071FE
ΔE00 4.28
Bright Lilac
#C95EFB
ΔE00 4.72
Bright Lavender
#C760FF
ΔE00 4.90
Orchid
#DA70D6
ΔE00 5.55
Heliotrope
#D94FF5
ΔE00 5.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D271F2 #91F271
analogous
#9171F2 #D271F2 #F271D2
triadic
#D271F2 #F2D271 #71F2D2
tetradic
#D271F2 #F29171 #91F271 #71D2F2
square
#D271F2 #F29171 #91F271 #71D2F2
split-complementary
#D271F2 #D2F271 #71F291
monochromatic
#A514D5 #C039ED #D271F2 #E4A9F7 #F6E1FC
Accessibility & contrast
On white
2.84
#D271F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.38
#D271F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D271F2
7.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D271F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D271F2 | 1.00 | 2.84 | 7.38 | 7.38 |
| #FFFFFF | 2.84 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.38 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.38 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5593F6
Deuteranopia (green-blind)
#759CEF
Tritanopia (blue-blind)
#D185A7
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #d271f2; /* rgb */ color: rgb(210, 113, 242); /* oklch */ color: oklch(70.8% 0.202 317.1);
Tailwind
colors: {
custom: {
50: '#e29df7',
500: '#d271f2',
950: '#000000',
},
}SCSS
$custom: #d271f2; $custom-light: #e29df7; $custom-dark: #000000;
JSON
{
"hex": "#d271f2",
"rgb": {
"r": 210,
"g": 113,
"b": 242
},
"hsl": {
"h": 285.116,
"s": 83.226,
"l": 69.608
},
"oklch": {
"l": 0.70775,
"c": 0.20187,
"h": 317.1
},
"luminance": 0.31923
}Semantic roles & 50–950 ramp
primary
#D271F2
secondary
#D6F2CD
accent
#E0063C
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85