#D271DC#D271DC

#D271DC is a light, vivid purple. Relative luminance 0.307; OKLCH L 69.7% C 0.180 H 323.7°. Best body text is #000000 at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#D271DC
RGBrgb(210, 113, 220)
HSLhsl(294, 60%, 65%)
HSVhsv(294, 49%, 86%)
CMYKcmyk(4.5%, 48.6%, 0%, 13.7%)
CIE-LABlab(62.24, 53.62, -38.72)
CIE-LCHlch(62.24, 66.14, 324.16°)
OKLaboklab(69.67% 0.1454 -0.1067)
OKLCHoklch(69.67% 0.18 323.7)
XYZxyz(45.4005, 30.6813, 71.2269)
Luminance0.3068 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271DC #7BDC71
analogous
#9D71DC #D271DC #DC71B0
triadic
#D271DC #DCD271 #71DCD2
tetradic
#D271DC #DC9D71 #7BDC71 #71B0DC
square
#D271DC #DC9D71 #7BDC71 #71B0DC
split-complementary
#D271DC #B0DC71 #71DC9D
monochromatic
#9D2AA9 #C240D0 #D271DC #E2A2E8 #F1D3F4

Accessibility & contrast

On white

2.94
#D271DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.14
#D271DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271DC
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271DC#FFFFFF#000000##000000
##D271DC1.002.947.147.14
#FFFFFF2.941.0021.0021.00
#0000007.1421.001.001.00
##0000007.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#638FE0
Deuteranopia (green-blind)
#809BD9
Tritanopia (blue-blind)
#D57E9C
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #d271dc;
/* rgb */ color: rgb(210, 113, 220);
/* oklch */ color: oklch(69.7% 0.180 323.7);
Tailwind
colors: {
  custom: {
    50: '#e29de7',
    500: '#d271dc',
    950: '#000000',
  },
}
SCSS
$custom: #d271dc;
$custom-light: #e29de7;
$custom-dark: #000000;
JSON
{
  "hex": "#d271dc",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 294.393,
    "s": 60.452,
    "l": 65.294
  },
  "oklch": {
    "l": 0.69666,
    "c": 0.18037,
    "h": 323.7
  },
  "luminance": 0.30679
}

Semantic roles & 50–950 ramp

primary
#D271DC
secondary
#C6E6C2
accent
#C81D2D
background
#FEF9FE
surface
#FCF2FC
border
#D5CCD5
text
#160F16
muted
#847E84

Preview Lab

Preview with #D271DC

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

Preview Lab → · Contrast checker → · Palette generator →

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