#D271F2#D271F2

#D271F2 is a light, highly saturated purple. Relative luminance 0.319; OKLCH L 70.8% C 0.202 H 317.1°. Best body text is #000000 at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#D271F2
RGBrgb(210, 113, 242)
HSLhsl(285, 83%, 70%)
HSVhsv(285, 53%, 95%)
CMYKcmyk(13.2%, 53.3%, 0%, 5.1%)
CIE-LABlab(63.28, 57.85, -49.32)
CIE-LCHlch(63.28, 76.02, 319.55°)
OKLaboklab(70.78% 0.148 -0.1373)
OKLCHoklch(70.78% 0.202 317.1)
XYZxyz(48.5082, 31.9244, 87.5940)
Luminance0.3192 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271F2 #91F271
analogous
#9171F2 #D271F2 #F271D2
triadic
#D271F2 #F2D271 #71F2D2
tetradic
#D271F2 #F29171 #91F271 #71D2F2
square
#D271F2 #F29171 #91F271 #71D2F2
split-complementary
#D271F2 #D2F271 #71F291
monochromatic
#A514D5 #C039ED #D271F2 #E4A9F7 #F6E1FC

Accessibility & contrast

On white

2.84
#D271F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.38
#D271F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271F2
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271F2#FFFFFF#000000##000000
##D271F21.002.847.387.38
#FFFFFF2.841.0021.0021.00
#0000007.3821.001.001.00
##0000007.3821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d271f2;
/* rgb */ color: rgb(210, 113, 242);
/* oklch */ color: oklch(70.8% 0.202 317.1);
Tailwind
colors: {
  custom: {
    50: '#e29df7',
    500: '#d271f2',
    950: '#000000',
  },
}
SCSS
$custom: #d271f2;
$custom-light: #e29df7;
$custom-dark: #000000;
JSON
{
  "hex": "#d271f2",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 242
  },
  "hsl": {
    "h": 285.116,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.70775,
    "c": 0.20187,
    "h": 317.1
  },
  "luminance": 0.31923
}

Semantic roles & 50–950 ramp

primary
#D271F2
secondary
#D6F2CD
accent
#E0063C
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85

Preview Lab

Preview with #D271F2

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

Preview Lab → · Contrast checker → · Palette generator →

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