#D271FD#D271FD

#D271FD is a light, highly saturated purple. Relative luminance 0.326; OKLCH L 71.4% C 0.213 H 314.3°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#D271FD
RGBrgb(210, 113, 253)
HSLhsl(282, 97%, 72%)
HSVhsv(282, 55%, 99%)
CMYKcmyk(17%, 55.3%, 0%, 0.8%)
CIE-LABlab(63.84, 60.05, -54.49)
CIE-LCHlch(63.84, 81.09, 317.78°)
OKLaboklab(71.37% 0.1487 -0.1524)
OKLCHoklch(71.37% 0.213 314.3)
XYZxyz(50.2102, 32.6052, 96.5579)
Luminance0.3260 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271FD #9CFD71
analogous
#8C71FD #D271FD #FD71E2
triadic
#D271FD #FDD271 #71FDD2
tetradic
#D271FD #FD8C71 #9CFD71 #71E2FD
square
#D271FD #FD8C71 #9CFD71 #71E2FD
split-complementary
#D271FD #E2FD71 #71FD8C
monochromatic
#A703F0 #BF35FC #D271FD #E5ADFE #F5E1FF

Accessibility & contrast

On white

2.79
#D271FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.52
#D271FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271FD
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271FD#FFFFFF#000000##000000
##D271FD1.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4B95FF
Deuteranopia (green-blind)
#6E9DF9
Tritanopia (blue-blind)
#CF88AD
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d271fd;
/* rgb */ color: rgb(210, 113, 253);
/* oklch */ color: oklch(71.4% 0.213 314.3);
Tailwind
colors: {
  custom: {
    50: '#e39eff',
    500: '#d271fd',
    950: '#000000',
  },
}
SCSS
$custom: #d271fd;
$custom-light: #e39eff;
$custom-dark: #000000;
JSON
{
  "hex": "#d271fd",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 253
  },
  "hsl": {
    "h": 281.571,
    "s": 97.222,
    "l": 71.765
  },
  "oklch": {
    "l": 0.71368,
    "c": 0.21293,
    "h": 314.3
  },
  "luminance": 0.32604
}

Semantic roles & 50–950 ramp

primary
#D271FD
secondary
#DEF7D3
accent
#E60046
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F18
muted
#847E86

Preview Lab

Preview with #D271FD

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#D271FD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva