#D271EA#D271EA

#D271EA is a light, vivid purple. Relative luminance 0.315; OKLCH L 70.4% C 0.194 H 319.4°. Best body text is #000000 at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#D271EA
RGBrgb(210, 113, 234)
HSLhsl(288, 74%, 68%)
HSVhsv(288, 52%, 92%)
CMYKcmyk(10.3%, 51.7%, 0%, 8.2%)
CIE-LABlab(62.89, 56.28, -45.50)
CIE-LCHlch(62.89, 72.37, 321.04°)
OKLaboklab(70.36% 0.1472 -0.1263)
OKLCHoklch(70.36% 0.194 319.4)
XYZxyz(47.3329, 31.4543, 81.4039)
Luminance0.3145 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271EA #89EA71
analogous
#9571EA #D271EA #EA71C5
triadic
#D271EA #EAD271 #71EAD2
tetradic
#D271EA #EA9571 #89EA71 #71C5EA
square
#D271EA #EA9571 #89EA71 #71C5EA
split-complementary
#D271EA #C5EA71 #71EA95
monochromatic
#A31DC4 #C13CE2 #D271EA #E3A6F2 #F4DCFA

Accessibility & contrast

On white

2.88
#D271EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.29
#D271EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271EA
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271EA#FFFFFF#000000##000000
##D271EA1.002.887.297.29
#FFFFFF2.881.0021.0021.00
#0000007.2921.001.001.00
##0000007.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A91EE
Deuteranopia (green-blind)
#799CE7
Tritanopia (blue-blind)
#D382A3
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #d271ea;
/* rgb */ color: rgb(210, 113, 234);
/* oklch */ color: oklch(70.4% 0.194 319.4);
Tailwind
colors: {
  custom: {
    50: '#e29df1',
    500: '#d271ea',
    950: '#000000',
  },
}
SCSS
$custom: #d271ea;
$custom-light: #e29df1;
$custom-dark: #000000;
JSON
{
  "hex": "#d271ea",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 288.099,
    "s": 74.233,
    "l": 68.039
  },
  "oklch": {
    "l": 0.7036,
    "c": 0.19393,
    "h": 319.4
  },
  "luminance": 0.31452
}

Semantic roles & 50–950 ramp

primary
#D271EA
secondary
#D0EEC9
accent
#D60F37
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F17
muted
#847E85

Preview Lab

Preview with #D271EA

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

Preview Lab → · Contrast checker → · Palette generator →

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