#D271FC#D271FC

#D271FC is a light, highly saturated purple. Relative luminance 0.325; OKLCH L 71.3% C 0.212 H 314.5°. Best body text is #000000 at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#D271FC
RGBrgb(210, 113, 252)
HSLhsl(282, 96%, 72%)
HSVhsv(282, 55%, 99%)
CMYKcmyk(16.7%, 55.2%, 0%, 1.2%)
CIE-LABlab(63.79, 59.85, -54.03)
CIE-LCHlch(63.79, 80.63, 317.93°)
OKLaboklab(71.31% 0.1486 -0.151)
OKLCHoklch(71.31% 0.212 314.5)
XYZxyz(50.0513, 32.5416, 95.7212)
Luminance0.3254 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271FC #9BFC71
analogous
#8D71FC #D271FC #FC71E0
triadic
#D271FC #FCD271 #71FCD2
tetradic
#D271FC #FC8D71 #9BFC71 #71E0FC
square
#D271FC #FC8D71 #9BFC71 #71E0FC
split-complementary
#D271FC #E0FC71 #71FC8D
monochromatic
#A705EE #BF35FB #D271FC #E5ADFD #F6E1FE

Accessibility & contrast

On white

2.80
#D271FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.51
#D271FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271FC
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271FC#FFFFFF#000000##000000
##D271FC1.002.807.517.51
#FFFFFF2.801.0021.0021.00
#0000007.5121.001.001.00
##0000007.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C95FF
Deuteranopia (green-blind)
#6E9DF8
Tritanopia (blue-blind)
#CF88AC
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d271fc;
/* rgb */ color: rgb(210, 113, 252);
/* oklch */ color: oklch(71.3% 0.212 314.5);
Tailwind
colors: {
  custom: {
    50: '#e39efe',
    500: '#d271fc',
    950: '#000000',
  },
}
SCSS
$custom: #d271fc;
$custom-light: #e39efe;
$custom-dark: #000000;
JSON
{
  "hex": "#d271fc",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 252
  },
  "hsl": {
    "h": 281.871,
    "s": 95.862,
    "l": 71.569
  },
  "oklch": {
    "l": 0.71313,
    "c": 0.21192,
    "h": 314.5
  },
  "luminance": 0.3254
}

Semantic roles & 50–950 ramp

primary
#D271FC
secondary
#DDF6D3
accent
#E60045
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F18
muted
#847E86

Preview Lab

Preview with #D271FC

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

Preview Lab → · Contrast checker → · Palette generator →

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