#D162EB#D162EB

#D162EB is a light, highly saturated purple. Relative luminance 0.283; OKLCH L 68.3% C 0.217 H 319.6°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#D162EB
RGBrgb(209, 98, 235)
HSLhsl(289, 77%, 65%)
HSVhsv(289, 58%, 92%)
CMYKcmyk(11.1%, 58.3%, 0%, 7.8%)
CIE-LABlab(60.15, 63.35, -50.40)
CIE-LCHlch(60.15, 80.95, 321.49°)
OKLaboklab(68.34% 0.1652 -0.1404)
OKLCHoklch(68.34% 0.217 319.6)
XYZxyz(45.6557, 28.2908, 81.6369)
Luminance0.2829 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D162EB #7CEB62
analogous
#8C62EB #D162EB #EB62C1
triadic
#D162EB #EBD162 #62EBD1
tetradic
#D162EB #EB8C62 #7CEB62 #62C1EB
square
#D162EB #EB8C62 #7CEB62 #62C1EB
split-complementary
#D162EB #C1EB62 #62EB8C
monochromatic
#9C18BB #C12CE4 #D162EB #E198F2 #F1CFF9

Accessibility & contrast

On white

3.15
#D162EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#D162EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D162EB
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D162EB#FFFFFF#000000##000000
##D162EB1.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4389EF
Deuteranopia (green-blind)
#6C95E7
Tritanopia (blue-blind)
#D2789E
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #d162eb;
/* rgb */ color: rgb(209, 98, 235);
/* oklch */ color: oklch(68.3% 0.217 319.6);
Tailwind
colors: {
  custom: {
    50: '#e294f2',
    500: '#d162eb',
    950: '#000000',
  },
}
SCSS
$custom: #d162eb;
$custom-light: #e294f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d162eb",
  "rgb": {
    "r": 209,
    "g": 98,
    "b": 235
  },
  "hsl": {
    "h": 288.613,
    "s": 77.401,
    "l": 65.294
  },
  "oklch": {
    "l": 0.68342,
    "c": 0.21682,
    "h": 319.6
  },
  "luminance": 0.28289
}

Semantic roles & 50–950 ramp

primary
#D162EB
secondary
#C6EBBD
accent
#DA0C33
background
#FEF9FE
surface
#FCF2FD
border
#D5CCD5
text
#160E17
muted
#847E85

Preview Lab

Preview with #D162EB

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

Preview Lab → · Contrast checker → · Palette generator →

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