#5B185E#5B185E

#5B185E is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.0% C 0.132 H 326.1°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#5B185E
RGBrgb(91, 24, 94)
HSLhsl(297, 59%, 23%)
HSVhsv(297, 74%, 37%)
CMYKcmyk(3.2%, 74.5%, 0%, 63.1%)
CIE-LABlab(22.61, 39.75, -26.44)
CIE-LCHlch(22.61, 47.74, 326.37°)
OKLaboklab(35% 0.1093 -0.0734)
OKLCHoklch(35% 0.132 326.1)
XYZxyz(6.6613, 3.6860, 10.9481)
Luminance0.0369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B185E #1B5E18
analogous
#38185E #5B185E #5E183E
triadic
#5B185E #5E5B18 #185E5B
tetradic
#5B185E #5E3818 #1B5E18 #183E5E
square
#5B185E #5E3818 #1B5E18 #183E5E
split-complementary
#5B185E #3E5E18 #185E38
monochromatic
#180618 #2C0C2D #5B185E #8A248F #B931C0

Accessibility & contrast

On white

12.09
#5B185E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B185E
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B185E#FFFFFF#000000##FFFFFF
##5B185E1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093160
Deuteranopia (green-blind)
#28395C
Tritanopia (blue-blind)
#5D2339
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5b185e;
/* rgb */ color: rgb(91, 24, 94);
/* oklch */ color: oklch(35.0% 0.132 326.1);
Tailwind
colors: {
  custom: {
    50: '#8c5c8c',
    500: '#5b185e',
    950: '#000000',
  },
}
SCSS
$custom: #5b185e;
$custom-light: #8c5c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b185e",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 94
  },
  "hsl": {
    "h": 297.429,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.35,
    "c": 0.13164,
    "h": 326.1
  },
  "luminance": 0.03686
}

Semantic roles & 50–950 ramp

primary
#5B185E
secondary
#41943D
accent
#E3454C
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B185E

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

Preview Lab → · Contrast checker → · Palette generator →

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