#D271EB#D271EB

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

Color values

HEX#D271EB
RGBrgb(210, 113, 235)
HSLhsl(288, 75%, 68%)
HSVhsv(288, 52%, 92%)
CMYKcmyk(10.6%, 51.9%, 0%, 7.8%)
CIE-LABlab(62.94, 56.47, -45.98)
CIE-LCHlch(62.94, 72.83, 320.85°)
OKLaboklab(70.41% 0.1473 -0.1277)
OKLCHoklch(70.41% 0.195 319.1)
XYZxyz(47.4769, 31.5119, 82.1627)
Luminance0.3151 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271EB #8AEB71
analogous
#9571EB #D271EB #EB71C7
triadic
#D271EB #EBD271 #71EBD2
tetradic
#D271EB #EB9571 #8AEB71 #71C7EB
square
#D271EB #EB9571 #8AEB71 #71C7EB
split-complementary
#D271EB #C7EB71 #71EB95
monochromatic
#A31CC6 #C13BE3 #D271EB #E3A7F3 #F4DCFA

Accessibility & contrast

On white

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

On black

7.30
#D271EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271EB
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271EB#FFFFFF#000000##000000
##D271EB1.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A92EF
Deuteranopia (green-blind)
#789CE8
Tritanopia (blue-blind)
#D383A4
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #d271eb;
/* rgb */ color: rgb(210, 113, 235);
/* oklch */ color: oklch(70.4% 0.195 319.1);
Tailwind
colors: {
  custom: {
    50: '#e29df2',
    500: '#d271eb',
    950: '#000000',
  },
}
SCSS
$custom: #d271eb;
$custom-light: #e29df2;
$custom-dark: #000000;
JSON
{
  "hex": "#d271eb",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 287.705,
    "s": 75.309,
    "l": 68.235
  },
  "oklch": {
    "l": 0.70411,
    "c": 0.19492,
    "h": 319.1
  },
  "luminance": 0.3151
}

Semantic roles & 50–950 ramp

primary
#D271EB
secondary
#D1EEC9
accent
#D70E37
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F17
muted
#847E85

Preview Lab

Preview with #D271EB

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

Preview Lab → · Contrast checker → · Palette generator →

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