#D271DF#D271DF

#D271DF is a light, vivid purple. Relative luminance 0.308; OKLCH L 69.8% C 0.183 H 322.7°. Best body text is #000000 at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#D271DF
RGBrgb(210, 113, 223)
HSLhsl(293, 63%, 66%)
HSVhsv(293, 49%, 87%)
CMYKcmyk(5.8%, 49.3%, 0%, 12.5%)
CIE-LABlab(62.37, 54.18, -40.19)
CIE-LCHlch(62.37, 67.46, 323.43°)
OKLaboklab(69.81% 0.1459 -0.1109)
OKLCHoklch(69.81% 0.183 322.7)
XYZxyz(45.8014, 30.8417, 73.3382)
Luminance0.3084 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271DF #7EDF71
analogous
#9B71DF #D271DF #DF71B5
triadic
#D271DF #DFD271 #71DFD2
tetradic
#D271DF #DF9B71 #7EDF71 #71B5DF
square
#D271DF #DF9B71 #7EDF71 #71B5DF
split-complementary
#D271DF #B5DF71 #71DF9B
monochromatic
#9E27AE #C23FD4 #D271DF #E2A3EA #F2D5F6

Accessibility & contrast

On white

2.93
#D271DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.17
#D271DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271DF
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271DF#FFFFFF#000000##000000
##D271DF1.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6190E3
Deuteranopia (green-blind)
#7F9BDC
Tritanopia (blue-blind)
#D57F9E
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #d271df;
/* rgb */ color: rgb(210, 113, 223);
/* oklch */ color: oklch(69.8% 0.183 322.7);
Tailwind
colors: {
  custom: {
    50: '#e29de9',
    500: '#d271df',
    950: '#000000',
  },
}
SCSS
$custom: #d271df;
$custom-light: #e29de9;
$custom-dark: #000000;
JSON
{
  "hex": "#d271df",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 292.909,
    "s": 63.218,
    "l": 65.882
  },
  "oklch": {
    "l": 0.69811,
    "c": 0.18324,
    "h": 322.7
  },
  "luminance": 0.3084
}

Semantic roles & 50–950 ramp

primary
#D271DF
secondary
#C8E8C4
accent
#CB1B2F
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F16
muted
#847E84

Preview Lab

Preview with #D271DF

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

Preview Lab → · Contrast checker → · Palette generator →

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