#D271F6#D271F6

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

Color values

HEX#D271F6
RGBrgb(210, 113, 246)
HSLhsl(284, 88%, 70%)
HSVhsv(284, 54%, 96%)
CMYKcmyk(14.6%, 54.1%, 0%, 3.5%)
CIE-LABlab(63.48, 58.64, -51.21)
CIE-LCHlch(63.48, 77.86, 318.87°)
OKLaboklab(70.99% 0.1483 -0.1428)
OKLCHoklch(70.99% 0.206 316.1)
XYZxyz(49.1155, 32.1673, 90.7926)
Luminance0.3217 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271F6 #95F671
analogous
#8F71F6 #D271F6 #F671D8
triadic
#D271F6 #F6D271 #71F6D2
tetradic
#D271F6 #F68F71 #95F671 #71D8F6
square
#D271F6 #F68F71 #95F671 #71D8F6
split-complementary
#D271F6 #D8F671 #71F68F
monochromatic
#A60EDE #C037F2 #D271F6 #E4ABFA #F6E2FD

Accessibility & contrast

On white

2.83
#D271F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.43
#D271F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271F6
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271F6#FFFFFF#000000##000000
##D271F61.002.837.437.43
#FFFFFF2.831.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5194FA
Deuteranopia (green-blind)
#729DF3
Tritanopia (blue-blind)
#D086A9
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #d271f6;
/* rgb */ color: rgb(210, 113, 246);
/* oklch */ color: oklch(71.0% 0.206 316.1);
Tailwind
colors: {
  custom: {
    50: '#e29dfa',
    500: '#d271f6',
    950: '#000000',
  },
}
SCSS
$custom: #d271f6;
$custom-light: #e29dfa;
$custom-dark: #000000;
JSON
{
  "hex": "#d271f6",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 246
  },
  "hsl": {
    "h": 283.759,
    "s": 88.079,
    "l": 70.392
  },
  "oklch": {
    "l": 0.70988,
    "c": 0.20587,
    "h": 316.1
  },
  "luminance": 0.32166
}

Semantic roles & 50–950 ramp

primary
#D271F6
secondary
#D9F4CF
accent
#E5013F
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85

Preview Lab

Preview with #D271F6

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

Preview Lab → · Contrast checker → · Palette generator →

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