#D271EE#D271EE

#D271EE is a light, vivid purple. Relative luminance 0.317; OKLCH L 70.6% C 0.198 H 318.2°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#D271EE
RGBrgb(210, 113, 238)
HSLhsl(287, 79%, 69%)
HSVhsv(287, 53%, 93%)
CMYKcmyk(11.8%, 52.5%, 0%, 6.7%)
CIE-LABlab(63.08, 57.06, -47.42)
CIE-LCHlch(63.08, 74.19, 320.27°)
OKLaboklab(70.57% 0.1476 -0.1318)
OKLCHoklch(70.57% 0.198 318.2)
XYZxyz(47.9140, 31.6867, 84.4646)
Luminance0.3169 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271EE #8DEE71
analogous
#9471EE #D271EE #EE71CC
triadic
#D271EE #EED271 #71EED2
tetradic
#D271EE #EE9471 #8DEE71 #71CCEE
square
#D271EE #EE9471 #8DEE71 #71CCEE
split-complementary
#D271EE #CCEE71 #71EE94
monochromatic
#A418CC #C13AE7 #D271EE #E3A8F5 #F5DEFB

Accessibility & contrast

On white

2.86
#D271EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.34
#D271EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271EE
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271EE#FFFFFF#000000##000000
##D271EE1.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5892F2
Deuteranopia (green-blind)
#779CEB
Tritanopia (blue-blind)
#D284A5
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #d271ee;
/* rgb */ color: rgb(210, 113, 238);
/* oklch */ color: oklch(70.6% 0.198 318.2);
Tailwind
colors: {
  custom: {
    50: '#e29df4',
    500: '#d271ee',
    950: '#000000',
  },
}
SCSS
$custom: #d271ee;
$custom-light: #e29df4;
$custom-dark: #000000;
JSON
{
  "hex": "#d271ee",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 238
  },
  "hsl": {
    "h": 286.56,
    "s": 78.616,
    "l": 68.824
  },
  "oklch": {
    "l": 0.70566,
    "c": 0.19789,
    "h": 318.2
  },
  "luminance": 0.31685
}

Semantic roles & 50–950 ramp

primary
#D271EE
secondary
#D3F0CB
accent
#DB0B39
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F17
muted
#847E85

Preview Lab

Preview with #D271EE

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

Preview Lab → · Contrast checker → · Palette generator →

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