#D271CC#D271CC

#D271CC is a light, vivid purple. Relative luminance 0.299; OKLCH L 68.9% C 0.166 H 329.5°. Best body text is #000000 at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#D271CC
RGBrgb(210, 113, 204)
HSLhsl(304, 52%, 63%)
HSVhsv(304, 46%, 82%)
CMYKcmyk(0%, 46.2%, 2.9%, 17.6%)
CIE-LABlab(61.55, 50.72, -30.81)
CIE-LCHlch(61.55, 59.35, 328.72°)
OKLaboklab(68.93% 0.1427 -0.0841)
OKLCHoklch(68.93% 0.166 329.5)
XYZxyz(43.3820, 29.8739, 60.5962)
Luminance0.2987 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271CC #71D277
analogous
#A771D2 #D271CC #D2719B
triadic
#D271CC #CCD271 #71CCD2
tetradic
#D271CC #D2A771 #71D277 #719BD2
square
#D271CC #D2A771 #71D277 #719BD2
split-complementary
#D271CC #9BD271 #71D2A7
monochromatic
#983092 #C343BB #D271CC #E19FDD #EFCEED

Accessibility & contrast

On white

3.01
#D271CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.97
#D271CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D271CC
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271CC#FFFFFF#000000##000000
##D271CC1.003.016.976.97
#FFFFFF3.011.0021.0021.00
#0000006.9721.001.001.00
##0000006.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B8CCF
Deuteranopia (green-blind)
#8799C9
Tritanopia (blue-blind)
#D87995
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #d271cc;
/* rgb */ color: rgb(210, 113, 204);
/* oklch */ color: oklch(68.9% 0.166 329.5);
Tailwind
colors: {
  custom: {
    50: '#e29ddc',
    500: '#d271cc',
    950: '#000000',
  },
}
SCSS
$custom: #d271cc;
$custom-light: #e29ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#d271cc",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 303.711,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.68925,
    "c": 0.16561,
    "h": 329.5
  },
  "luminance": 0.29872
}

Semantic roles & 50–950 ramp

primary
#D271CC
secondary
#BEE1C0
accent
#BF3026
background
#FEF9FD
surface
#FCF2FB
border
#D5CCD4
text
#160E15
muted
#847E83

Preview Lab

Preview with #D271CC

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

Preview Lab → · Contrast checker → · Palette generator →

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