#D271EC#D271EC

#D271EC is a light, vivid purple. Relative luminance 0.316; OKLCH L 70.5% C 0.196 H 318.8°. Best body text is #000000 at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#D271EC
RGBrgb(210, 113, 236)
HSLhsl(287, 76%, 68%)
HSVhsv(287, 52%, 93%)
CMYKcmyk(11%, 52.1%, 0%, 7.5%)
CIE-LABlab(62.99, 56.67, -46.46)
CIE-LCHlch(62.99, 73.28, 320.65°)
OKLaboklab(70.46% 0.1474 -0.129)
OKLCHoklch(70.46% 0.196 318.8)
XYZxyz(47.6218, 31.5698, 82.9257)
Luminance0.3157 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D271EC #8BEC71
analogous
#9471EC #D271EC #EC71C8
triadic
#D271EC #ECD271 #71ECD2
tetradic
#D271EC #EC9471 #8BEC71 #71C8EC
square
#D271EC #EC9471 #8BEC71 #71C8EC
split-complementary
#D271EC #C8EC71 #71EC94
monochromatic
#A31BC8 #C13BE5 #D271EC #E3A7F3 #F4DDFA

Accessibility & contrast

On white

2.87
#D271EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.31
#D271EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D271EC
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D271EC#FFFFFF#000000##000000
##D271EC1.002.877.317.31
#FFFFFF2.871.0021.0021.00
#0000007.3121.001.001.00
##0000007.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5992F0
Deuteranopia (green-blind)
#789CE9
Tritanopia (blue-blind)
#D283A4
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #d271ec;
/* rgb */ color: rgb(210, 113, 236);
/* oklch */ color: oklch(70.5% 0.196 318.8);
Tailwind
colors: {
  custom: {
    50: '#e29df2',
    500: '#d271ec',
    950: '#000000',
  },
}
SCSS
$custom: #d271ec;
$custom-light: #e29df2;
$custom-dark: #000000;
JSON
{
  "hex": "#d271ec",
  "rgb": {
    "r": 210,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 287.317,
    "s": 76.398,
    "l": 68.431
  },
  "oklch": {
    "l": 0.70463,
    "c": 0.19591,
    "h": 318.8
  },
  "luminance": 0.31568
}

Semantic roles & 50–950 ramp

primary
#D271EC
secondary
#D2EFCA
accent
#D90D38
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160F17
muted
#847E85

Preview Lab

Preview with #D271EC

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

Preview Lab → · Contrast checker → · Palette generator →

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