#D271C8#D271C8

#D271C8 is a light, vivid purple. Relative luminance 0.297; OKLCH L 68.7% C 0.162 H 331.1°. Best body text is #000000 at 6.94:1 contrast (WCAG AA passes).

Color values

HEX#D271C8
RGBrgb(210, 113, 200)
HSLhsl(306, 52%, 63%)
HSVhsv(306, 46%, 82%)
CMYKcmyk(0%, 46.2%, 4.8%, 17.6%)
CIE-LABlab(61.38, 50.03, -28.81)
CIE-LCHlch(61.38, 57.73, 330.07°)
OKLaboklab(68.75% 0.1419 -0.0784)
OKLCHoklch(68.75% 0.162 331.1)
XYZxyz(42.9084, 29.6845, 58.1020)
Luminance0.2968 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271C8 #71D27B
analogous
#AC71D2 #D271C8 #D27197
triadic
#D271C8 #C8D271 #71C8D2
tetradic
#D271C8 #D2AC71 #71D27B #7197D2
square
#D271C8 #D2AC71 #71D27B #7197D2
split-complementary
#D271C8 #97D271 #71D2AC
monochromatic
#98308E #C343B6 #D271C8 #E19FDA #EFCEEC

Accessibility & contrast

On white

3.03
#D271C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.94
#D271C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D271C8
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271C8#FFFFFF#000000##000000
##D271C81.003.036.946.94
#FFFFFF3.031.0021.0021.00
#0000006.9421.001.001.00
##0000006.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D8CCB
Deuteranopia (green-blind)
#8899C5
Tritanopia (blue-blind)
#D97893
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #d271c8;
/* rgb */ color: rgb(210, 113, 200);
/* oklch */ color: oklch(68.7% 0.162 331.1);
Tailwind
colors: {
  custom: {
    50: '#e29dd9',
    500: '#d271c8',
    950: '#000000',
  },
}
SCSS
$custom: #d271c8;
$custom-light: #e29dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#d271c8",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 200
  },
  "hsl": {
    "h": 306.186,
    "s": 51.872,
    "l": 63.333
  },
  "oklch": {
    "l": 0.68749,
    "c": 0.16208,
    "h": 331.1
  },
  "luminance": 0.29682
}

Semantic roles & 50–950 ramp

primary
#D271C8
secondary
#BEE1C2
accent
#BF3626
background
#FEF9FD
surface
#FCF2FA
border
#D5CCD3
text
#160E14
muted
#847E83

Preview Lab

Preview with #D271C8

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

Preview Lab → · Contrast checker → · Palette generator →

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