#D162D5#D162D5

#D162D5 is a light, vivid purple. Relative luminance 0.271; OKLCH L 67.2% C 0.197 H 326.1°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#D162D5
RGBrgb(209, 98, 213)
HSLhsl(298, 58%, 61%)
HSVhsv(298, 54%, 84%)
CMYKcmyk(1.9%, 54%, 0%, 16.5%)
CIE-LABlab(59.06, 59.30, -39.77)
CIE-LCHlch(59.06, 71.41, 326.15°)
OKLaboklab(67.19% 0.1635 -0.1096)
OKLCHoklch(67.19% 0.197 326.1)
XYZxyz(42.6716, 27.0972, 65.9205)
Luminance0.2710 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D162D5 #66D562
analogous
#9762D5 #D162D5 #D5629F
triadic
#D162D5 #D5D162 #62D5D1
tetradic
#D162D5 #D59762 #66D562 #629FD5
square
#D162D5 #D59762 #66D562 #629FD5
split-complementary
#D162D5 #9FD562 #62D597
monochromatic
#912895 #C035C5 #D162D5 #DF92E2 #EDC3EF

Accessibility & contrast

On white

3.27
#D162D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#D162D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D162D5
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D162D5#FFFFFF#000000##000000
##D162D51.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5485D9
Deuteranopia (green-blind)
#7893D2
Tritanopia (blue-blind)
#D67093
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #d162d5;
/* rgb */ color: rgb(209, 98, 213);
/* oklch */ color: oklch(67.2% 0.197 326.1);
Tailwind
colors: {
  custom: {
    50: '#e294e2',
    500: '#d162d5',
    950: '#000000',
  },
}
SCSS
$custom: #d162d5;
$custom-light: #e294e2;
$custom-dark: #000000;
JSON
{
  "hex": "#d162d5",
  "rgb": {
    "r": 209,
    "g": 98,
    "b": 213
  },
  "hsl": {
    "h": 297.913,
    "s": 57.789,
    "l": 60.98
  },
  "oklch": {
    "l": 0.67194,
    "c": 0.19681,
    "h": 326.1
  },
  "luminance": 0.27095
}

Semantic roles & 50–950 ramp

primary
#D162D5
secondary
#B5DFB4
accent
#C52026
background
#FEF9FD
surface
#FCF2FB
border
#D5CCD4
text
#160D15
muted
#847E83

Preview Lab

Preview with #D162D5

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

Preview Lab → · Contrast checker → · Palette generator →

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