#D271A2#D271A2

#D271A2 is a light, vivid pink. Relative luminance 0.281; OKLCH L 67.3% C 0.134 H 349.7°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#D271A2
RGBrgb(210, 113, 162)
HSLhsl(330, 52%, 63%)
HSVhsv(330, 46%, 82%)
CMYKcmyk(0%, 46.2%, 22.9%, 17.6%)
CIE-LABlab(60.00, 43.98, -9.22)
CIE-LCHlch(60.00, 44.93, 348.16°)
OKLaboklab(67.26% 0.1319 -0.024)
OKLCHoklch(67.26% 0.134 349.7)
XYZxyz(39.0060, 28.1235, 37.5494)
Luminance0.2812 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271A2 #71D2A1
analogous
#D271D2 #D271A2 #D27171
triadic
#D271A2 #A2D271 #71A2D2
tetradic
#D271A2 #D2D271 #71D2A1 #7171D2
square
#D271A2 #D2D271 #71D2A1 #7171D2
split-complementary
#D271A2 #71D271 #71D2D2
monochromatic
#983065 #C34384 #D271A2 #E19FC0 #EFCEDF

Accessibility & contrast

On white

3.17
#D271A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#D271A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D271A2
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271A2#FFFFFF#000000##000000
##D271A21.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B86A4
Deuteranopia (green-blind)
#9497A0
Tritanopia (blue-blind)
#DE6E83
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #d271a2;
/* rgb */ color: rgb(210, 113, 162);
/* oklch */ color: oklch(67.3% 0.134 349.7);
Tailwind
colors: {
  custom: {
    50: '#e29cbd',
    500: '#d271a2',
    950: '#000000',
  },
}
SCSS
$custom: #d271a2;
$custom-light: #e29cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#d271a2",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 162
  },
  "hsl": {
    "h": 329.691,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.67261,
    "c": 0.13409,
    "h": 349.7
  },
  "luminance": 0.28121
}

Semantic roles & 50–950 ramp

primary
#D271A2
secondary
#BEE1CF
accent
#BF7226
background
#FEF9FB
surface
#FCF2F6
border
#D5CCD0
text
#160E12
muted
#847E81

Preview Lab

Preview with #D271A2

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

Preview Lab → · Contrast checker → · Palette generator →

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