#D271C2#D271C2

#D271C2 is a light, vivid purple. Relative luminance 0.294; OKLCH L 68.5% C 0.157 H 333.6°. Best body text is #000000 at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#D271C2
RGBrgb(210, 113, 194)
HSLhsl(310, 52%, 63%)
HSVhsv(310, 46%, 82%)
CMYKcmyk(0%, 46.2%, 7.6%, 17.6%)
CIE-LABlab(61.14, 49.00, -25.78)
CIE-LCHlch(61.14, 55.37, 332.25°)
OKLaboklab(68.49% 0.1406 -0.0698)
OKLCHoklch(68.49% 0.157 333.6)
XYZxyz(42.2209, 29.4095, 54.4812)
Luminance0.2941 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271C2 #71D281
analogous
#B171D2 #D271C2 #D27191
triadic
#D271C2 #C2D271 #71C2D2
tetradic
#D271C2 #D2B171 #71D281 #7191D2
square
#D271C2 #D2B171 #71D281 #7191D2
split-complementary
#D271C2 #91D271 #71D2B1
monochromatic
#983087 #C343AE #D271C2 #E19FD6 #EFCEEA

Accessibility & contrast

On white

3.05
#D271C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.88
#D271C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D271C2
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271C2#FFFFFF#000000##000000
##D271C21.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#708BC5
Deuteranopia (green-blind)
#8A99BF
Tritanopia (blue-blind)
#DA7691
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #d271c2;
/* rgb */ color: rgb(210, 113, 194);
/* oklch */ color: oklch(68.5% 0.157 333.6);
Tailwind
colors: {
  custom: {
    50: '#e29dd4',
    500: '#d271c2',
    950: '#000000',
  },
}
SCSS
$custom: #d271c2;
$custom-light: #e29dd4;
$custom-dark: #000000;
JSON
{
  "hex": "#d271c2",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 194
  },
  "hsl": {
    "h": 309.897,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.68492,
    "c": 0.15696,
    "h": 333.6
  },
  "luminance": 0.29407
}

Semantic roles & 50–950 ramp

primary
#D271C2
secondary
#BEE1C4
accent
#BF3F26
background
#FEF9FD
surface
#FCF2FA
border
#D5CCD3
text
#160E14
muted
#847E83

Preview Lab

Preview with #D271C2

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

Preview Lab → · Contrast checker → · Palette generator →

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