#D271CB#D271CB

#D271CB is a light, vivid purple. Relative luminance 0.298; OKLCH L 68.9% C 0.165 H 329.9°. Best body text is #000000 at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#D271CB
RGBrgb(210, 113, 203)
HSLhsl(304, 52%, 63%)
HSVhsv(304, 46%, 82%)
CMYKcmyk(0%, 46.2%, 3.3%, 17.6%)
CIE-LABlab(61.50, 50.55, -30.31)
CIE-LCHlch(61.50, 58.94, 329.05°)
OKLaboklab(68.88% 0.1425 -0.0826)
OKLCHoklch(68.88% 0.165 329.9)
XYZxyz(43.2625, 29.8261, 59.9666)
Luminance0.2982 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271CB #71D278
analogous
#A871D2 #D271CB #D2719A
triadic
#D271CB #CBD271 #71CBD2
tetradic
#D271CB #D2A871 #71D278 #719AD2
square
#D271CB #D2A871 #71D278 #719AD2
split-complementary
#D271CB #9AD271 #71D2A8
monochromatic
#983091 #C343BA #D271CB #E19FDC #EFCEED

Accessibility & contrast

On white

3.02
#D271CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.96
#D271CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D271CB
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271CB#FFFFFF#000000##000000
##D271CB1.003.026.966.96
#FFFFFF3.021.0021.0021.00
#0000006.9621.001.001.00
##0000006.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C8CCE
Deuteranopia (green-blind)
#8799C8
Tritanopia (blue-blind)
#D87995
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #d271cb;
/* rgb */ color: rgb(210, 113, 203);
/* oklch */ color: oklch(68.9% 0.165 329.9);
Tailwind
colors: {
  custom: {
    50: '#e29ddb',
    500: '#d271cb',
    950: '#000000',
  },
}
SCSS
$custom: #d271cb;
$custom-light: #e29ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#d271cb",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 203
  },
  "hsl": {
    "h": 304.33,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.68881,
    "c": 0.16472,
    "h": 329.9
  },
  "luminance": 0.29824
}

Semantic roles & 50–950 ramp

primary
#D271CB
secondary
#BEE1C1
accent
#BF3126
background
#FEF9FD
surface
#FCF2FB
border
#D5CCD4
text
#160E15
muted
#847E83

Preview Lab

Preview with #D271CB

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

Preview Lab → · Contrast checker → · Palette generator →

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