#D162C8#D162C8

#D162C8 is a light, vivid purple. Relative luminance 0.265; OKLCH L 66.6% C 0.186 H 330.6°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#D162C8
RGBrgb(209, 98, 200)
HSLhsl(305, 55%, 60%)
HSVhsv(305, 53%, 82%)
CMYKcmyk(0%, 53.1%, 4.3%, 18%)
CIE-LABlab(58.47, 57.05, -33.33)
CIE-LCHlch(58.47, 66.07, 329.71°)
OKLaboklab(66.57% 0.1617 -0.0911)
OKLCHoklch(66.57% 0.186 330.6)
XYZxyz(41.0872, 26.4634, 57.5762)
Luminance0.2646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D162C8 #62D16B
analogous
#A362D1 #D162C8 #D16290
triadic
#D162C8 #C8D162 #62C8D1
tetradic
#D162C8 #D1A362 #62D16B #6290D1
square
#D162C8 #D1A362 #62D16B #6290D1
split-complementary
#D162C8 #90D162 #62D1A3
monochromatic
#8F2A87 #BE38B3 #D162C8 #DF91D9 #EDC1E9

Accessibility & contrast

On white

3.34
#D162C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#D162C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D162C8
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D162C8#FFFFFF#000000##000000
##D162C81.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C83CB
Deuteranopia (green-blind)
#7E92C5
Tritanopia (blue-blind)
#D86C8C
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #d162c8;
/* rgb */ color: rgb(209, 98, 200);
/* oklch */ color: oklch(66.6% 0.186 330.6);
Tailwind
colors: {
  custom: {
    50: '#e293d9',
    500: '#d162c8',
    950: '#000000',
  },
}
SCSS
$custom: #d162c8;
$custom-light: #e293d9;
$custom-dark: #000000;
JSON
{
  "hex": "#d162c8",
  "rgb": {
    "r": 209,
    "g": 98,
    "b": 200
  },
  "hsl": {
    "h": 304.865,
    "s": 54.68,
    "l": 60.196
  },
  "oklch": {
    "l": 0.66568,
    "c": 0.18559,
    "h": 330.6
  },
  "luminance": 0.26461
}

Semantic roles & 50–950 ramp

primary
#D162C8
secondary
#B2DDB6
accent
#C23023
background
#FEF9FD
surface
#FCF2FA
border
#D5CCD3
text
#160D14
muted
#847E83

Preview Lab

Preview with #D162C8

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

Preview Lab → · Contrast checker → · Palette generator →

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