#D271F3#D271F3

#D271F3 is a light, highly saturated purple. Relative luminance 0.320; OKLCH L 70.8% C 0.203 H 316.9°. Best body text is #000000 at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#D271F3
RGBrgb(210, 113, 243)
HSLhsl(285, 84%, 70%)
HSVhsv(285, 53%, 95%)
CMYKcmyk(13.6%, 53.5%, 0%, 4.7%)
CIE-LABlab(63.33, 58.05, -49.79)
CIE-LCHlch(63.33, 76.48, 319.38°)
OKLaboklab(70.83% 0.148 -0.1387)
OKLCHoklch(70.83% 0.203 316.9)
XYZxyz(48.6588, 31.9846, 88.3871)
Luminance0.3198 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271F3 #92F371
analogous
#9171F3 #D271F3 #F371D3
triadic
#D271F3 #F3D271 #71F3D2
tetradic
#D271F3 #F39171 #92F371 #71D3F3
square
#D271F3 #F39171 #92F371 #71D3F3
split-complementary
#D271F3 #D3F371 #71F391
monochromatic
#A512D7 #C039EE #D271F3 #E4A9F8 #F6E2FD

Accessibility & contrast

On white

2.84
#D271F3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.40
#D271F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271F3
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271F3#FFFFFF#000000##000000
##D271F31.002.847.407.40
#FFFFFF2.841.0021.0021.00
#0000007.4021.001.001.00
##0000007.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5493F7
Deuteranopia (green-blind)
#749CF0
Tritanopia (blue-blind)
#D185A8
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #d271f3;
/* rgb */ color: rgb(210, 113, 243);
/* oklch */ color: oklch(70.8% 0.203 316.9);
Tailwind
colors: {
  custom: {
    50: '#e29df7',
    500: '#d271f3',
    950: '#000000',
  },
}
SCSS
$custom: #d271f3;
$custom-light: #e29df7;
$custom-dark: #000000;
JSON
{
  "hex": "#d271f3",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 243
  },
  "hsl": {
    "h": 284.769,
    "s": 84.416,
    "l": 69.804
  },
  "oklch": {
    "l": 0.70828,
    "c": 0.20287,
    "h": 316.9
  },
  "luminance": 0.31983
}

Semantic roles & 50–950 ramp

primary
#D271F3
secondary
#D7F2CE
accent
#E1053D
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160F17
muted
#847E85

Preview Lab

Preview with #D271F3

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

Preview Lab → · Contrast checker → · Palette generator →

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