#D162F2#D162F2

#D162F2 is a light, highly saturated purple. Relative luminance 0.287; OKLCH L 68.7% C 0.223 H 317.8°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#D162F2
RGBrgb(209, 98, 242)
HSLhsl(286, 85%, 67%)
HSVhsv(286, 60%, 95%)
CMYKcmyk(13.6%, 59.5%, 0%, 5.1%)
CIE-LABlab(60.52, 64.69, -53.71)
CIE-LCHlch(60.52, 84.08, 320.30°)
OKLaboklab(68.73% 0.1655 -0.15)
OKLCHoklch(68.73% 0.223 317.8)
XYZxyz(46.6869, 28.7033, 87.0682)
Luminance0.2870 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D162F2 #83F262
analogous
#8962F2 #D162F2 #F262CB
triadic
#D162F2 #F2D162 #62F2D1
tetradic
#D162F2 #F28962 #83F262 #62CBF2
square
#D162F2 #F28962 #83F262 #62CBF2
split-complementary
#D162F2 #CBF262 #62F289
monochromatic
#9F11C9 #C029ED #D162F2 #E29BF7 #F2D3FB

Accessibility & contrast

On white

3.12
#D162F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.74
#D162F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #D162F2
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D162F2#FFFFFF#000000##000000
##D162F21.003.126.746.74
#FFFFFF3.121.0021.0021.00
#0000006.7421.001.001.00
##0000006.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8BF6
Deuteranopia (green-blind)
#6796EE
Tritanopia (blue-blind)
#D07AA1
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #d162f2;
/* rgb */ color: rgb(209, 98, 242);
/* oklch */ color: oklch(68.7% 0.223 317.8);
Tailwind
colors: {
  custom: {
    50: '#e294f7',
    500: '#d162f2',
    950: '#000000',
  },
}
SCSS
$custom: #d162f2;
$custom-light: #e294f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d162f2",
  "rgb": {
    "r": 209,
    "g": 98,
    "b": 242
  },
  "hsl": {
    "h": 286.25,
    "s": 84.706,
    "l": 66.667
  },
  "oklch": {
    "l": 0.68729,
    "c": 0.22338,
    "h": 317.8
  },
  "luminance": 0.28701
}

Semantic roles & 50–950 ramp

primary
#D162F2
secondary
#CBEFC1
accent
#E10437
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160E17
muted
#847E85

Preview Lab

Preview with #D162F2

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

Preview Lab → · Contrast checker → · Palette generator →

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