#D271B2#D271B2

#D271B2 is a light, vivid pink. Relative luminance 0.287; OKLCH L 67.8% C 0.144 H 341.1°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#D271B2
RGBrgb(210, 113, 178)
HSLhsl(320, 52%, 63%)
HSVhsv(320, 46%, 82%)
CMYKcmyk(0%, 46.2%, 15.2%, 17.6%)
CIE-LABlab(60.54, 46.39, -17.58)
CIE-LCHlch(60.54, 49.61, 339.24°)
OKLaboklab(67.85% 0.1366 -0.0469)
OKLCHoklch(67.85% 0.144 341.1)
XYZxyz(40.5198, 28.7290, 45.5219)
Luminance0.2873 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271B2 #71D291
analogous
#C171D2 #D271B2 #D27181
triadic
#D271B2 #B2D271 #71B2D2
tetradic
#D271B2 #D2C171 #71D291 #7181D2
square
#D271B2 #D2C171 #71D291 #7181D2
split-complementary
#D271B2 #81D271 #71D2C1
monochromatic
#983076 #C34399 #D271B2 #E19FCB #EFCEE4

Accessibility & contrast

On white

3.11
#D271B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#D271B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D271B2
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271B2#FFFFFF#000000##000000
##D271B21.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7688B4
Deuteranopia (green-blind)
#9098AF
Tritanopia (blue-blind)
#DC728A
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #d271b2;
/* rgb */ color: rgb(210, 113, 178);
/* oklch */ color: oklch(67.8% 0.144 341.1);
Tailwind
colors: {
  custom: {
    50: '#e29cc9',
    500: '#d271b2',
    950: '#000000',
  },
}
SCSS
$custom: #d271b2;
$custom-light: #e29cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#d271b2",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 178
  },
  "hsl": {
    "h": 319.794,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.67846,
    "c": 0.14444,
    "h": 341.1
  },
  "luminance": 0.28726
}

Semantic roles & 50–950 ramp

primary
#D271B2
secondary
#BEE1CA
accent
#BF5926
background
#FEF9FC
surface
#FCF2F8
border
#D5CCD1
text
#160E13
muted
#847E82

Preview Lab

Preview with #D271B2

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

Preview Lab → · Contrast checker → · Palette generator →

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