#5D1862#5D1862

#5D1862 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.6% C 0.136 H 325.0°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#5D1862
RGBrgb(93, 24, 98)
HSLhsl(296, 61%, 24%)
HSVhsv(296, 76%, 38%)
CMYKcmyk(5.1%, 75.5%, 0%, 61.6%)
CIE-LABlab(23.21, 41.02, -28.09)
CIE-LCHlch(23.21, 49.71, 325.60°)
OKLaboklab(35.59% 0.1117 -0.0781)
OKLCHoklch(35.59% 0.136 325)
XYZxyz(7.0453, 3.8627, 11.9274)
Luminance0.0386 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1862 #1D6218
analogous
#381862 #5D1862 #621842
triadic
#5D1862 #625D18 #18625D
tetradic
#5D1862 #623818 #1D6218 #184262
square
#5D1862 #623818 #1D6218 #184262
split-complementary
#5D1862 #426218 #186238
monochromatic
#170619 #2E0C31 #5D1862 #8C2493 #BA30C4

Accessibility & contrast

On white

11.85
#5D1862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5D1862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1862
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1862#FFFFFF#000000##FFFFFF
##5D18621.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043264
Deuteranopia (green-blind)
#273A60
Tritanopia (blue-blind)
#5F243B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5d1862;
/* rgb */ color: rgb(93, 24, 98);
/* oklch */ color: oklch(35.6% 0.136 325.0);
Tailwind
colors: {
  custom: {
    50: '#8e5d8f',
    500: '#5d1862',
    950: '#000000',
  },
}
SCSS
$custom: #5d1862;
$custom-light: #8e5d8f;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1862",
  "rgb": {
    "r": 93,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 295.946,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.35586,
    "c": 0.13633,
    "h": 325
  },
  "luminance": 0.03862
}

Semantic roles & 50–950 ramp

primary
#5D1862
secondary
#44983E
accent
#E4444F
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5D1862

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

Preview Lab → · Contrast checker → · Palette generator →

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