#D271FE#D271FE

#D271FE is a light, highly saturated purple. Relative luminance 0.327; OKLCH L 71.4% C 0.214 H 314.0°. Best body text is #000000 at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#D271FE
RGBrgb(210, 113, 254)
HSLhsl(281, 99%, 72%)
HSVhsv(281, 56%, 100%)
CMYKcmyk(17.3%, 55.5%, 0%, 0.4%)
CIE-LABlab(63.89, 60.26, -54.96)
CIE-LCHlch(63.89, 81.56, 317.63°)
OKLaboklab(71.42% 0.1488 -0.1538)
OKLCHoklch(71.42% 0.214 314)
XYZxyz(50.3699, 32.6691, 97.3991)
Luminance0.3267 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271FE #9DFE71
analogous
#8C71FE #D271FE #FE71E3
triadic
#D271FE #FED271 #71FED2
tetradic
#D271FE #FE8C71 #9DFE71 #71E3FE
square
#D271FE #FE8C71 #9DFE71 #71E3FE
split-complementary
#D271FE #E3FE71 #71FE8C
monochromatic
#A802F3 #BF34FE #D271FE #E5AEFE #F5E1FF

Accessibility & contrast

On white

2.79
#D271FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.53
#D271FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271FE
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271FE#FFFFFF#000000##000000
##D271FE1.002.797.537.53
#FFFFFF2.791.0021.0021.00
#0000007.5321.001.001.00
##0000007.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A95FF
Deuteranopia (green-blind)
#6D9DFA
Tritanopia (blue-blind)
#CE89AD
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d271fe;
/* rgb */ color: rgb(210, 113, 254);
/* oklch */ color: oklch(71.4% 0.214 314.0);
Tailwind
colors: {
  custom: {
    50: '#e39eff',
    500: '#d271fe',
    950: '#000000',
  },
}
SCSS
$custom: #d271fe;
$custom-light: #e39eff;
$custom-dark: #000000;
JSON
{
  "hex": "#d271fe",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 254
  },
  "hsl": {
    "h": 281.277,
    "s": 98.601,
    "l": 71.961
  },
  "oklch": {
    "l": 0.71423,
    "c": 0.21394,
    "h": 314
  },
  "luminance": 0.32668
}

Semantic roles & 50–950 ramp

primary
#D271FE
secondary
#DFF7D4
accent
#E60048
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F18
muted
#847E86

Preview Lab

Preview with #D271FE

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

Preview Lab → · Contrast checker → · Palette generator →

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