#D271A7#D271A7

#D271A7 is a light, vivid pink. Relative luminance 0.283; OKLCH L 67.4% C 0.137 H 346.9°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#D271A7
RGBrgb(210, 113, 167)
HSLhsl(327, 52%, 63%)
HSVhsv(327, 46%, 82%)
CMYKcmyk(0%, 46.2%, 20.5%, 17.6%)
CIE-LABlab(60.16, 44.71, -11.85)
CIE-LCHlch(60.16, 46.25, 345.16°)
OKLaboklab(67.44% 0.1335 -0.0311)
OKLCHoklch(67.44% 0.137 346.9)
XYZxyz(39.4593, 28.3049, 39.9368)
Luminance0.2830 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271A7 #71D29C
analogous
#CC71D2 #D271A7 #D27176
triadic
#D271A7 #A7D271 #71A7D2
tetradic
#D271A7 #D2CC71 #71D29C #7176D2
square
#D271A7 #D2CC71 #71D29C #7176D2
split-complementary
#D271A7 #76D271 #71D2CC
monochromatic
#98306A #C3438A #D271A7 #E19FC4 #EFCEE1

Accessibility & contrast

On white

3.15
#D271A7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#D271A7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D271A7
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271A7#FFFFFF#000000##000000
##D271A71.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7987A9
Deuteranopia (green-blind)
#9397A5
Tritanopia (blue-blind)
#DE6F85
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #d271a7;
/* rgb */ color: rgb(210, 113, 167);
/* oklch */ color: oklch(67.4% 0.137 346.9);
Tailwind
colors: {
  custom: {
    50: '#e29cc1',
    500: '#d271a7',
    950: '#000000',
  },
}
SCSS
$custom: #d271a7;
$custom-light: #e29cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#d271a7",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 167
  },
  "hsl": {
    "h": 326.598,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.67437,
    "c": 0.13705,
    "h": 346.9
  },
  "luminance": 0.28302
}

Semantic roles & 50–950 ramp

primary
#D271A7
secondary
#BEE1CD
accent
#BF6A26
background
#FEF9FB
surface
#FCF2F7
border
#D5CCD0
text
#160E12
muted
#847E81

Preview Lab

Preview with #D271A7

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

Preview Lab → · Contrast checker → · Palette generator →

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