#D271E2#D271E2

#D271E2 is a light, vivid purple. Relative luminance 0.310; OKLCH L 70.0% C 0.186 H 321.8°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#D271E2
RGBrgb(210, 113, 226)
HSLhsl(292, 66%, 66%)
HSVhsv(292, 50%, 89%)
CMYKcmyk(7.1%, 50%, 0%, 11.4%)
CIE-LABlab(62.51, 54.75, -41.65)
CIE-LCHlch(62.51, 68.79, 322.74°)
OKLaboklab(69.96% 0.1463 -0.1151)
OKLCHoklch(69.96% 0.186 321.8)
XYZxyz(46.2094, 31.0049, 75.4872)
Luminance0.3100 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271E2 #81E271
analogous
#9A71E2 #D271E2 #E271BA
triadic
#D271E2 #E2D271 #71E2D2
tetradic
#D271E2 #E29A71 #81E271 #71BAE2
square
#D271E2 #E29A71 #81E271 #71BAE2
split-complementary
#D271E2 #BAE271 #71E29A
monochromatic
#A025B4 #C23ED8 #D271E2 #E2A4EC #F2D7F7

Accessibility & contrast

On white

2.92
#D271E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#D271E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271E2
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271E2#FFFFFF#000000##000000
##D271E21.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6090E6
Deuteranopia (green-blind)
#7D9BDF
Tritanopia (blue-blind)
#D4809F
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #d271e2;
/* rgb */ color: rgb(210, 113, 226);
/* oklch */ color: oklch(70.0% 0.186 321.8);
Tailwind
colors: {
  custom: {
    50: '#e29deb',
    500: '#d271e2',
    950: '#000000',
  },
}
SCSS
$custom: #d271e2;
$custom-light: #e29deb;
$custom-dark: #000000;
JSON
{
  "hex": "#d271e2",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 226
  },
  "hsl": {
    "h": 291.504,
    "s": 66.082,
    "l": 66.471
  },
  "oklch": {
    "l": 0.69958,
    "c": 0.18612,
    "h": 321.8
  },
  "luminance": 0.31003
}

Semantic roles & 50–950 ramp

primary
#D271E2
secondary
#CAEAC5
accent
#CE1831
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F16
muted
#847E84

Preview Lab

Preview with #D271E2

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

Preview Lab → · Contrast checker → · Palette generator →

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