#5D1462#5D1462

#5D1462 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.141 H 325.2°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#5D1462
RGBrgb(93, 20, 98)
HSLhsl(296, 66%, 23%)
HSVhsv(296, 80%, 38%)
CMYKcmyk(5.1%, 79.6%, 0%, 61.6%)
CIE-LABlab(22.69, 42.51, -28.92)
CIE-LCHlch(22.69, 51.42, 325.77°)
OKLaboklab(35.21% 0.1159 -0.0805)
OKLCHoklch(35.21% 0.141 325.2)
XYZxyz(6.9688, 3.7098, 11.9019)
Luminance0.0371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1462 #196214
analogous
#361462 #5D1462 #621440
triadic
#5D1462 #625D14 #14625D
tetradic
#5D1462 #623614 #196214 #144062
square
#5D1462 #623614 #196214 #144062
split-complementary
#5D1462 #406214 #146236
monochromatic
#180519 #2D0A2F #5D1462 #8D1E95 #BD29C8

Accessibility & contrast

On white

12.06
#5D1462 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5D1462 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1462
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1462#FFFFFF#000000##FFFFFF
##5D14621.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003164
Deuteranopia (green-blind)
#253960
Tritanopia (blue-blind)
#5F223A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5d1462;
/* rgb */ color: rgb(93, 20, 98);
/* oklch */ color: oklch(35.2% 0.141 325.2);
Tailwind
colors: {
  custom: {
    50: '#8e5b8f',
    500: '#5d1462',
    950: '#000000',
  },
}
SCSS
$custom: #5d1462;
$custom-light: #8e5b8f;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1462",
  "rgb": {
    "r": 93,
    "g": 20,
    "b": 98
  },
  "hsl": {
    "h": 296.154,
    "s": 66.102,
    "l": 23.137
  },
  "oklch": {
    "l": 0.35212,
    "c": 0.14112,
    "h": 325.2
  },
  "luminance": 0.03709
}

Semantic roles & 50–950 ramp

primary
#5D1462
secondary
#3F9938
accent
#E93F4A
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5D1462

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

Preview Lab → · Contrast checker → · Palette generator →

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