#5E1062#5E1062

#5E1062 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.1% C 0.146 H 325.9°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#5E1062
RGBrgb(94, 16, 98)
HSLhsl(297, 72%, 22%)
HSVhsv(297, 84%, 38%)
CMYKcmyk(4.1%, 83.7%, 0%, 61.6%)
CIE-LABlab(22.42, 44.05, -29.34)
CIE-LCHlch(22.42, 52.93, 326.33°)
OKLaboklab(35.06% 0.1207 -0.0817)
OKLCHoklch(35.06% 0.146 325.9)
XYZxyz(7.0058, 3.6326, 11.8851)
Luminance0.0363 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1062 #146210
analogous
#351062 #5E1062 #62103D
triadic
#5E1062 #625E10 #10625E
tetradic
#5E1062 #623510 #146210 #103D62
square
#5E1062 #623510 #146210 #103D62
split-complementary
#5E1062 #3D6210 #106235
monochromatic
#19041A #2C072D #5E1062 #901997 #C321CB

Accessibility & contrast

On white

12.16
#5E1062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5E1062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1062
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1062#FFFFFF#000000##FFFFFF
##5E10621.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003064
Deuteranopia (green-blind)
#243960
Tritanopia (blue-blind)
#612039
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5e1062;
/* rgb */ color: rgb(94, 16, 98);
/* oklch */ color: oklch(35.1% 0.146 325.9);
Tailwind
colors: {
  custom: {
    50: '#8f5a8f',
    500: '#5e1062',
    950: '#000000',
  },
}
SCSS
$custom: #5e1062;
$custom-light: #8f5a8f;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1062",
  "rgb": {
    "r": 94,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 297.073,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.35055,
    "c": 0.14577,
    "h": 325.9
  },
  "luminance": 0.03632
}

Semantic roles & 50–950 ramp

primary
#5E1062
secondary
#389B33
accent
#EF3942
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5E1062

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

Preview Lab → · Contrast checker → · Palette generator →

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