#D271F7#D271F7

#D271F7 is a light, highly saturated purple. Relative luminance 0.322; OKLCH L 71.0% C 0.207 H 315.8°. Best body text is #000000 at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#D271F7
RGBrgb(210, 113, 247)
HSLhsl(283, 89%, 71%)
HSVhsv(283, 54%, 97%)
CMYKcmyk(15%, 54.3%, 0%, 3.1%)
CIE-LABlab(63.53, 58.84, -51.68)
CIE-LCHlch(63.53, 78.32, 318.71°)
OKLaboklab(71.04% 0.1483 -0.1442)
OKLCHoklch(71.04% 0.207 315.8)
XYZxyz(49.2694, 32.2289, 91.6031)
Luminance0.3223 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271F7 #96F771
analogous
#8F71F7 #D271F7 #F771D9
triadic
#D271F7 #F7D271 #71F7D2
tetradic
#D271F7 #F78F71 #96F771 #71D9F7
square
#D271F7 #F78F71 #96F771 #71D9F7
split-complementary
#D271F7 #D9F771 #71F78F
monochromatic
#A60DE1 #C037F4 #D271F7 #E4ABFA #F6E2FD

Accessibility & contrast

On white

2.82
#D271F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.45
#D271F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271F7
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271F7#FFFFFF#000000##000000
##D271F71.002.827.457.45
#FFFFFF2.821.0021.0021.00
#0000007.4521.001.001.00
##0000007.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5194FB
Deuteranopia (green-blind)
#729DF4
Tritanopia (blue-blind)
#D087AA
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d271f7;
/* rgb */ color: rgb(210, 113, 247);
/* oklch */ color: oklch(71.0% 0.207 315.8);
Tailwind
colors: {
  custom: {
    50: '#e29dfa',
    500: '#d271f7',
    950: '#000000',
  },
}
SCSS
$custom: #d271f7;
$custom-light: #e29dfa;
$custom-dark: #000000;
JSON
{
  "hex": "#d271f7",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 247
  },
  "hsl": {
    "h": 283.433,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.71042,
    "c": 0.20688,
    "h": 315.8
  },
  "luminance": 0.32227
}

Semantic roles & 50–950 ramp

primary
#D271F7
secondary
#DAF4D0
accent
#E6003F
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85

Preview Lab

Preview with #D271F7

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

Preview Lab → · Contrast checker → · Palette generator →

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