#5D2162#5D2162

#5D2162 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 36.6% C 0.124 H 324.6°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#5D2162
RGBrgb(93, 33, 98)
HSLhsl(295, 50%, 26%)
HSVhsv(295, 66%, 38%)
CMYKcmyk(5.1%, 66.3%, 0%, 61.6%)
CIE-LABlab(24.63, 37.04, -25.84)
CIE-LCHlch(24.63, 45.16, 325.10°)
OKLaboklab(36.61% 0.1007 -0.0717)
OKLCHoklch(36.61% 0.124 324.6)
XYZxyz(7.2625, 4.2971, 11.9998)
Luminance0.0430 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D2162 #266221
analogous
#3C2162 #5D2162 #622146
triadic
#5D2162 #625D21 #21625D
tetradic
#5D2162 #623C21 #266221 #214662
square
#5D2162 #623C21 #266221 #214662
split-complementary
#5D2162 #466221 #21623C
monochromatic
#160817 #321234 #5D2162 #883090 #B440BE

Accessibility & contrast

On white

11.29
#5D2162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5D2162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D2162
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D2162#FFFFFF#000000##FFFFFF
##5D21621.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153664
Deuteranopia (green-blind)
#2C3D60
Tritanopia (blue-blind)
#5F2A3E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d2162;
/* rgb */ color: rgb(93, 33, 98);
/* oklch */ color: oklch(36.6% 0.124 324.6);
Tailwind
colors: {
  custom: {
    50: '#8d618f',
    500: '#5d2162',
    950: '#000000',
  },
}
SCSS
$custom: #5d2162;
$custom-light: #8d618f;
$custom-dark: #000000;
JSON
{
  "hex": "#5d2162",
  "rgb": {
    "r": 93,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 295.385,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.36608,
    "c": 0.12362,
    "h": 324.6
  },
  "luminance": 0.04297
}

Semantic roles & 50–950 ramp

primary
#5D2162
secondary
#4F9649
accent
#D94F59
background
#F8F5F8
surface
#F0EAF0
border
#CBC6CB
text
#0C050C
muted
#7D797D

Preview Lab

Preview with #5D2162

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

Preview Lab → · Contrast checker → · Palette generator →

#5D2162 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva