#D271F1#D271F1

#D271F1 is a light, highly saturated purple. Relative luminance 0.319; OKLCH L 70.7% C 0.201 H 317.4°. Best body text is #000000 at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#D271F1
RGBrgb(210, 113, 241)
HSLhsl(285, 82%, 69%)
HSVhsv(285, 53%, 95%)
CMYKcmyk(12.9%, 53.1%, 0%, 5.5%)
CIE-LABlab(63.23, 57.65, -48.84)
CIE-LCHlch(63.23, 75.56, 319.73°)
OKLaboklab(70.72% 0.1479 -0.136)
OKLCHoklch(70.72% 0.201 317.4)
XYZxyz(48.3584, 31.8645, 86.8052)
Luminance0.3186 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271F1 #90F171
analogous
#9271F1 #D271F1 #F171D0
triadic
#D271F1 #F1D271 #71F1D2
tetradic
#D271F1 #F19271 #90F171 #71D0F1
square
#D271F1 #F19271 #90F171 #71D0F1
split-complementary
#D271F1 #D0F171 #71F192
monochromatic
#A515D3 #C039EC #D271F1 #E4A9F6 #F5E0FC

Accessibility & contrast

On white

2.85
#D271F1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.37
#D271F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271F1
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271F1#FFFFFF#000000##000000
##D271F11.002.857.377.37
#FFFFFF2.851.0021.0021.00
#0000007.3721.001.001.00
##0000007.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5593F5
Deuteranopia (green-blind)
#759CEE
Tritanopia (blue-blind)
#D185A7
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #d271f1;
/* rgb */ color: rgb(210, 113, 241);
/* oklch */ color: oklch(70.7% 0.201 317.4);
Tailwind
colors: {
  custom: {
    50: '#e29df6',
    500: '#d271f1',
    950: '#000000',
  },
}
SCSS
$custom: #d271f1;
$custom-light: #e29df6;
$custom-dark: #000000;
JSON
{
  "hex": "#d271f1",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 241
  },
  "hsl": {
    "h": 285.469,
    "s": 82.051,
    "l": 69.412
  },
  "oklch": {
    "l": 0.70723,
    "c": 0.20087,
    "h": 317.4
  },
  "luminance": 0.31863
}

Semantic roles & 50–950 ramp

primary
#D271F1
secondary
#D5F1CC
accent
#DE073B
background
#FEF9FF
surface
#FCF2FE
border
#D5CCD6
text
#160F17
muted
#847E85

Preview Lab

Preview with #D271F1

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

Preview Lab → · Contrast checker → · Palette generator →

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