#D271E7#D271E7

#D271E7 is a light, vivid purple. Relative luminance 0.313; OKLCH L 70.2% C 0.191 H 320.3°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#D271E7
RGBrgb(210, 113, 231)
HSLhsl(289, 71%, 67%)
HSVhsv(289, 51%, 91%)
CMYKcmyk(9.1%, 51.1%, 0%, 9.4%)
CIE-LABlab(62.75, 55.70, -44.06)
CIE-LCHlch(62.75, 71.02, 321.65°)
OKLaboklab(70.21% 0.1469 -0.1221)
OKLCHoklch(70.21% 0.191 320.3)
XYZxyz(46.9055, 31.2833, 79.1533)
Luminance0.3128 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271E7 #86E771
analogous
#9771E7 #D271E7 #E771C1
triadic
#D271E7 #E7D271 #71E7D2
tetradic
#D271E7 #E79771 #86E771 #71C1E7
square
#D271E7 #E79771 #86E771 #71C1E7
split-complementary
#D271E7 #C1E771 #71E797
monochromatic
#A220BE #C13DDE #D271E7 #E3A5F0 #F3DAF9

Accessibility & contrast

On white

2.89
#D271E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.26
#D271E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271E7
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271E7#FFFFFF#000000##000000
##D271E71.002.897.267.26
#FFFFFF2.891.0021.0021.00
#0000007.2621.001.001.00
##0000007.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D91EB
Deuteranopia (green-blind)
#7B9BE4
Tritanopia (blue-blind)
#D381A2
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #d271e7;
/* rgb */ color: rgb(210, 113, 231);
/* oklch */ color: oklch(70.2% 0.191 320.3);
Tailwind
colors: {
  custom: {
    50: '#e29def',
    500: '#d271e7',
    950: '#000000',
  },
}
SCSS
$custom: #d271e7;
$custom-light: #e29def;
$custom-dark: #000000;
JSON
{
  "hex": "#d271e7",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 231
  },
  "hsl": {
    "h": 289.322,
    "s": 71.084,
    "l": 67.451
  },
  "oklch": {
    "l": 0.70208,
    "c": 0.19099,
    "h": 320.3
  },
  "luminance": 0.31281
}

Semantic roles & 50–950 ramp

primary
#D271E7
secondary
#CEECC7
accent
#D31235
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F16
muted
#847E84

Preview Lab

Preview with #D271E7

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

Preview Lab → · Contrast checker → · Palette generator →

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