#D271DB#D271DB

#D271DB is a light, vivid purple. Relative luminance 0.306; OKLCH L 69.6% C 0.179 H 324.1°. Best body text is #000000 at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#D271DB
RGBrgb(210, 113, 219)
HSLhsl(295, 60%, 65%)
HSVhsv(295, 48%, 86%)
CMYKcmyk(4.1%, 48.4%, 0%, 14.1%)
CIE-LABlab(62.19, 53.43, -38.23)
CIE-LCHlch(62.19, 65.70, 324.41°)
OKLaboklab(69.62% 0.1453 -0.1053)
OKLCHoklch(69.62% 0.179 324.1)
XYZxyz(45.2685, 30.6285, 70.5315)
Luminance0.3063 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271DB #7ADB71
analogous
#9D71DB #D271DB #DB71AF
triadic
#D271DB #DBD271 #71DBD2
tetradic
#D271DB #DB9D71 #7ADB71 #71AFDB
square
#D271DB #DB9D71 #7ADB71 #71AFDB
split-complementary
#D271DB #AFDB71 #71DB9D
monochromatic
#9D2AA7 #C340CF #D271DB #E1A2E7 #F1D3F4

Accessibility & contrast

On white

2.95
#D271DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.13
#D271DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271DB
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271DB#FFFFFF#000000##000000
##D271DB1.002.957.137.13
#FFFFFF2.951.0021.0021.00
#0000007.1321.001.001.00
##0000007.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#648FDF
Deuteranopia (green-blind)
#809AD8
Tritanopia (blue-blind)
#D67E9C
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #d271db;
/* rgb */ color: rgb(210, 113, 219);
/* oklch */ color: oklch(69.6% 0.179 324.1);
Tailwind
colors: {
  custom: {
    50: '#e29de6',
    500: '#d271db',
    950: '#000000',
  },
}
SCSS
$custom: #d271db;
$custom-light: #e29de6;
$custom-dark: #000000;
JSON
{
  "hex": "#d271db",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 294.906,
    "s": 59.551,
    "l": 65.098
  },
  "oklch": {
    "l": 0.69618,
    "c": 0.17942,
    "h": 324.1
  },
  "luminance": 0.30626
}

Semantic roles & 50–950 ramp

primary
#D271DB
secondary
#C5E6C2
accent
#C71E2D
background
#FEF9FE
surface
#FCF2FC
border
#D5CCD5
text
#160F16
muted
#847E84

Preview Lab

Preview with #D271DB

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

Preview Lab → · Contrast checker → · Palette generator →

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