#D271FA#D271FA

#D271FA is a light, highly saturated purple. Relative luminance 0.324; OKLCH L 71.2% C 0.210 H 315.0°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#D271FA
RGBrgb(210, 113, 250)
HSLhsl(282, 93%, 71%)
HSVhsv(282, 55%, 98%)
CMYKcmyk(16%, 54.8%, 0%, 2%)
CIE-LABlab(63.68, 59.45, -53.09)
CIE-LCHlch(63.68, 79.70, 318.23°)
OKLaboklab(71.2% 0.1485 -0.1483)
OKLCHoklch(71.2% 0.21 315)
XYZxyz(49.7361, 32.4155, 94.0608)
Luminance0.3241 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271FA #99FA71
analogous
#8D71FA #D271FA #FA71DD
triadic
#D271FA #FAD271 #71FAD2
tetradic
#D271FA #FA8D71 #99FA71 #71DDFA
square
#D271FA #FA8D71 #99FA71 #71DDFA
split-complementary
#D271FA #DDFA71 #71FA8D
monochromatic
#A708E8 #BF36F8 #D271FA #E5ACFC #F6E1FE

Accessibility & contrast

On white

2.81
#D271FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.48
#D271FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271FA
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271FA#FFFFFF#000000##000000
##D271FA1.002.817.487.48
#FFFFFF2.811.0021.0021.00
#0000007.4821.001.001.00
##0000007.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E95FE
Deuteranopia (green-blind)
#709DF6
Tritanopia (blue-blind)
#CF88AB
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d271fa;
/* rgb */ color: rgb(210, 113, 250);
/* oklch */ color: oklch(71.2% 0.210 315.0);
Tailwind
colors: {
  custom: {
    50: '#e39efc',
    500: '#d271fa',
    950: '#000000',
  },
}
SCSS
$custom: #d271fa;
$custom-light: #e39efc;
$custom-dark: #000000;
JSON
{
  "hex": "#d271fa",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 250
  },
  "hsl": {
    "h": 282.482,
    "s": 93.197,
    "l": 71.176
  },
  "oklch": {
    "l": 0.71204,
    "c": 0.2099,
    "h": 315
  },
  "luminance": 0.32414
}

Semantic roles & 50–950 ramp

primary
#D271FA
secondary
#DCF5D1
accent
#E60043
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85

Preview Lab

Preview with #D271FA

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

Preview Lab → · Contrast checker → · Palette generator →

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