#D271E4#D271E4

#D271E4 is a light, vivid purple. Relative luminance 0.311; OKLCH L 70.1% C 0.188 H 321.2°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#D271E4
RGBrgb(210, 113, 228)
HSLhsl(291, 68%, 67%)
HSVhsv(291, 50%, 89%)
CMYKcmyk(7.9%, 50.4%, 0%, 10.6%)
CIE-LABlab(62.60, 55.13, -42.61)
CIE-LCHlch(62.60, 69.68, 322.29°)
OKLaboklab(70.06% 0.1465 -0.1179)
OKLCHoklch(70.06% 0.188 321.2)
XYZxyz(46.4855, 31.1153, 76.9410)
Luminance0.3111 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271E4 #83E471
analogous
#9971E4 #D271E4 #E471BC
triadic
#D271E4 #E4D271 #71E4D2
tetradic
#D271E4 #E49971 #83E471 #71BCE4
square
#D271E4 #E49971 #83E471 #71BCE4
split-complementary
#D271E4 #BCE471 #71E499
monochromatic
#A023B8 #C23EDA #D271E4 #E2A4EE #F3D8F8

Accessibility & contrast

On white

2.91
#D271E4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.22
#D271E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271E4
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271E4#FFFFFF#000000##000000
##D271E41.002.917.227.22
#FFFFFF2.911.0021.0021.00
#0000007.2221.001.001.00
##0000007.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E90E8
Deuteranopia (green-blind)
#7C9BE1
Tritanopia (blue-blind)
#D480A0
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #d271e4;
/* rgb */ color: rgb(210, 113, 228);
/* oklch */ color: oklch(70.1% 0.188 321.2);
Tailwind
colors: {
  custom: {
    50: '#e29ded',
    500: '#d271e4',
    950: '#000000',
  },
}
SCSS
$custom: #d271e4;
$custom-light: #e29ded;
$custom-dark: #000000;
JSON
{
  "hex": "#d271e4",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 228
  },
  "hsl": {
    "h": 290.609,
    "s": 68.047,
    "l": 66.863
  },
  "oklch": {
    "l": 0.70058,
    "c": 0.18807,
    "h": 321.2
  },
  "luminance": 0.31113
}

Semantic roles & 50–950 ramp

primary
#D271E4
secondary
#CCEBC6
accent
#D01633
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F16
muted
#847E84

Preview Lab

Preview with #D271E4

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

Preview Lab → · Contrast checker → · Palette generator →

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