#D168E4#D168E4

#D168E4 is a light, highly saturated purple. Relative luminance 0.291; OKLCH L 68.7% C 0.201 H 321.3°. Best body text is #000000 at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#D168E4
RGBrgb(209, 104, 228)
HSLhsl(291, 70%, 65%)
HSVhsv(291, 54%, 89%)
CMYKcmyk(8.3%, 54.4%, 0%, 10.6%)
CIE-LABlab(60.83, 59.23, -45.41)
CIE-LCHlch(60.83, 74.63, 322.52°)
OKLaboklab(68.73% 0.1572 -0.126)
OKLCHoklch(68.73% 0.201 321.3)
XYZxyz(45.2468, 29.0594, 76.6094)
Luminance0.2906 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D168E4 #7BE468
analogous
#9368E4 #D168E4 #E468B9
triadic
#D168E4 #E4D168 #68E4D1
tetradic
#D168E4 #E49368 #7BE468 #68B9E4
square
#D168E4 #E49368 #7BE468 #68B9E4
split-complementary
#D168E4 #B9E468 #68E493
monochromatic
#9B20B2 #C134DB #D168E4 #E19CED #F1D0F7

Accessibility & contrast

On white

3.08
#D168E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.81
#D168E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D168E4
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D168E4#FFFFFF#000000##000000
##D168E41.003.086.816.81
#FFFFFF3.081.0021.0021.00
#0000006.8121.001.001.00
##0000006.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#528BE8
Deuteranopia (green-blind)
#7597E1
Tritanopia (blue-blind)
#D37A9C
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #d168e4;
/* rgb */ color: rgb(209, 104, 228);
/* oklch */ color: oklch(68.7% 0.201 321.3);
Tailwind
colors: {
  custom: {
    50: '#e298ed',
    500: '#d168e4',
    950: '#000000',
  },
}
SCSS
$custom: #d168e4;
$custom-light: #e298ed;
$custom-dark: #000000;
JSON
{
  "hex": "#d168e4",
  "rgb": {
    "r": 209,
    "g": 104,
    "b": 228
  },
  "hsl": {
    "h": 290.806,
    "s": 69.663,
    "l": 65.098
  },
  "oklch": {
    "l": 0.68727,
    "c": 0.20145,
    "h": 321.3
  },
  "luminance": 0.29057
}

Semantic roles & 50–950 ramp

primary
#D168E4
secondary
#C5E9BF
accent
#D21431
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160E16
muted
#847E84

Preview Lab

Preview with #D168E4

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

Preview Lab → · Contrast checker → · Palette generator →

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