#D271FB#D271FB

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

Color values

HEX#D271FB
RGBrgb(210, 113, 251)
HSLhsl(282, 95%, 71%)
HSVhsv(282, 55%, 98%)
CMYKcmyk(16.3%, 55%, 0%, 1.6%)
CIE-LABlab(63.74, 59.65, -53.56)
CIE-LCHlch(63.74, 80.17, 318.08°)
OKLaboklab(71.26% 0.1486 -0.1497)
OKLCHoklch(71.26% 0.211 314.8)
XYZxyz(49.8933, 32.4784, 94.8888)
Luminance0.3248 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271FB #9AFB71
analogous
#8D71FB #D271FB #FB71DF
triadic
#D271FB #FBD271 #71FBD2
tetradic
#D271FB #FB8D71 #9AFB71 #71DFFB
square
#D271FB #FB8D71 #9AFB71 #71DFFB
split-complementary
#D271FB #DFFB71 #71FB8D
monochromatic
#A707EB #BF35F9 #D271FB #E5ADFD #F6E1FE

Accessibility & contrast

On white

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

On black

7.50
#D271FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271FB
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271FB#FFFFFF#000000##000000
##D271FB1.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d271fb;
/* rgb */ color: rgb(210, 113, 251);
/* oklch */ color: oklch(71.3% 0.211 314.8);
Tailwind
colors: {
  custom: {
    50: '#e39efd',
    500: '#d271fb',
    950: '#000000',
  },
}
SCSS
$custom: #d271fb;
$custom-light: #e39efd;
$custom-dark: #000000;
JSON
{
  "hex": "#d271fb",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 251
  },
  "hsl": {
    "h": 282.174,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.71258,
    "c": 0.21091,
    "h": 314.8
  },
  "luminance": 0.32477
}

Semantic roles & 50–950 ramp

primary
#D271FB
secondary
#DDF6D2
accent
#E60044
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F18
muted
#847E86

Preview Lab

Preview with #D271FB

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

Preview Lab → · Contrast checker → · Palette generator →

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