#D271ED#D271ED

#D271ED is a light, vivid purple. Relative luminance 0.316; OKLCH L 70.5% C 0.197 H 318.5°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#D271ED
RGBrgb(210, 113, 237)
HSLhsl(287, 78%, 69%)
HSVhsv(287, 52%, 93%)
CMYKcmyk(11.4%, 52.3%, 0%, 7.1%)
CIE-LABlab(63.03, 56.86, -46.94)
CIE-LCHlch(63.03, 73.73, 320.46°)
OKLaboklab(70.51% 0.1475 -0.1304)
OKLCHoklch(70.51% 0.197 318.5)
XYZxyz(47.7675, 31.6281, 83.6930)
Luminance0.3163 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271ED #8CED71
analogous
#9471ED #D271ED #ED71CA
triadic
#D271ED #EDD271 #71EDD2
tetradic
#D271ED #ED9471 #8CED71 #71CAED
square
#D271ED #ED9471 #8CED71 #71CAED
split-complementary
#D271ED #CAED71 #71ED94
monochromatic
#A41ACA #C13BE6 #D271ED #E3A7F4 #F4DEFB

Accessibility & contrast

On white

2.87
#D271ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.33
#D271ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271ED
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271ED#FFFFFF#000000##000000
##D271ED1.002.877.337.33
#FFFFFF2.871.0021.0021.00
#0000007.3321.001.001.00
##0000007.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5892F1
Deuteranopia (green-blind)
#779CEA
Tritanopia (blue-blind)
#D283A5
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #d271ed;
/* rgb */ color: rgb(210, 113, 237);
/* oklch */ color: oklch(70.5% 0.197 318.5);
Tailwind
colors: {
  custom: {
    50: '#e29df3',
    500: '#d271ed',
    950: '#000000',
  },
}
SCSS
$custom: #d271ed;
$custom-light: #e29df3;
$custom-dark: #000000;
JSON
{
  "hex": "#d271ed",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 237
  },
  "hsl": {
    "h": 286.935,
    "s": 77.5,
    "l": 68.627
  },
  "oklch": {
    "l": 0.70514,
    "c": 0.1969,
    "h": 318.5
  },
  "luminance": 0.31626
}

Semantic roles & 50–950 ramp

primary
#D271ED
secondary
#D2EFCA
accent
#DA0C39
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F17
muted
#847E85

Preview Lab

Preview with #D271ED

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

Preview Lab → · Contrast checker → · Palette generator →

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