#5B1062#5B1062

#5B1062 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.144 H 324.2°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#5B1062
RGBrgb(91, 16, 98)
HSLhsl(295, 72%, 22%)
HSVhsv(295, 84%, 38%)
CMYKcmyk(7.1%, 83.7%, 0%, 61.6%)
CIE-LABlab(21.86, 43.39, -30.27)
CIE-LCHlch(21.86, 52.91, 325.10°)
OKLaboklab(34.55% 0.1171 -0.0845)
OKLCHoklch(34.55% 0.144 324.2)
XYZxyz(6.7041, 3.4770, 11.8709)
Luminance0.0348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1062 #176210
analogous
#321062 #5B1062 #621040
triadic
#5B1062 #625B10 #10625B
tetradic
#5B1062 #623210 #176210 #104062
square
#5B1062 #623210 #176210 #104062
split-complementary
#5B1062 #406210 #106232
monochromatic
#18041A #2A072D #5B1062 #8C1997 #BD21CB

Accessibility & contrast

On white

12.39
#5B1062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5B1062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1062
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1062#FFFFFF#000000##FFFFFF
##5B10621.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F64
Deuteranopia (green-blind)
#213760
Tritanopia (blue-blind)
#5D2039
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5b1062;
/* rgb */ color: rgb(91, 16, 98);
/* oklch */ color: oklch(34.6% 0.144 324.2);
Tailwind
colors: {
  custom: {
    50: '#8d598f',
    500: '#5b1062',
    950: '#000000',
  },
}
SCSS
$custom: #5b1062;
$custom-light: #8d598f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1062",
  "rgb": {
    "r": 91,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 294.878,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34554,
    "c": 0.14437,
    "h": 324.2
  },
  "luminance": 0.03477
}

Semantic roles & 50–950 ramp

primary
#5B1062
secondary
#3C9B33
accent
#EF3949
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B1062

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

Preview Lab → · Contrast checker → · Palette generator →

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