#D181EC#D181EC

#D181EC is a light, vivid purple. Relative luminance 0.353; OKLCH L 72.7% C 0.170 H 317.2°. Best body text is #000000 at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#D181EC
RGBrgb(209, 129, 236)
HSLhsl(285, 74%, 72%)
HSVhsv(285, 45%, 93%)
CMYKcmyk(11.4%, 45.3%, 0%, 7.5%)
CIE-LABlab(65.99, 48.27, -41.74)
CIE-LCHlch(65.99, 63.82, 319.15°)
OKLaboklab(72.67% 0.1246 -0.1155)
OKLCHoklch(72.67% 0.17 317.2)
XYZxyz(49.2829, 35.3135, 83.5607)
Luminance0.3531 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D181EC #9CEC81
analogous
#9C81EC #D181EC #EC81D2
triadic
#D181EC #ECD181 #81ECD1
tetradic
#D181EC #EC9C81 #9CEC81 #81D2EC
square
#D181EC #EC9C81 #9CEC81 #81D2EC
split-complementary
#D181EC #D2EC81 #81EC9C
monochromatic
#A620D3 #BE4CE4 #D181EC #E4B6F4 #F5E4FB

Accessibility & contrast

On white

2.60
#D181EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.06
#D181EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D181EC
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D181EC#FFFFFF#000000##000000
##D181EC1.002.608.068.06
#FFFFFF2.601.0021.0021.00
#0000008.0621.001.001.00
##0000008.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9BF0
Deuteranopia (green-blind)
#84A3E9
Tritanopia (blue-blind)
#D090AB
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d181ec;
/* rgb */ color: rgb(209, 129, 236);
/* oklch */ color: oklch(72.7% 0.170 317.2);
Tailwind
colors: {
  custom: {
    50: '#e1a7f2',
    500: '#d181ec',
    950: '#000000',
  },
}
SCSS
$custom: #d181ec;
$custom-light: #e1a7f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d181ec",
  "rgb": {
    "r": 209,
    "g": 129,
    "b": 236
  },
  "hsl": {
    "h": 284.86,
    "s": 73.793,
    "l": 71.569
  },
  "oklch": {
    "l": 0.72666,
    "c": 0.16989,
    "h": 317.2
  },
  "luminance": 0.35312
}

Semantic roles & 50–950 ramp

primary
#D181EC
secondary
#DEF2D7
accent
#D61042
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#151017
muted
#847F85

Preview Lab

Preview with #D181EC

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

Preview Lab → · Contrast checker → · Palette generator →

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