#5B145E#5B145E

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

Color values

HEX#5B145E
RGBrgb(91, 20, 94)
HSLhsl(298, 65%, 22%)
HSVhsv(298, 79%, 37%)
CMYKcmyk(3.2%, 78.7%, 0%, 63.1%)
CIE-LABlab(22.06, 41.29, -27.30)
CIE-LCHlch(22.06, 49.50, 326.52°)
OKLaboklab(34.61% 0.1136 -0.0759)
OKLCHoklch(34.61% 0.137 326.3)
XYZxyz(6.5848, 3.5331, 10.9226)
Luminance0.0353 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B145E #175E14
analogous
#36145E #5B145E #5E143C
triadic
#5B145E #5E5B14 #145E5B
tetradic
#5B145E #5E3614 #175E14 #143C5E
square
#5B145E #5E3614 #175E14 #143C5E
split-complementary
#5B145E #3C5E14 #145E36
monochromatic
#180519 #2A092C #5B145E #8C1F90 #BD29C3

Accessibility & contrast

On white

12.31
#5B145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5B145E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B145E
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B145E#FFFFFF#000000##FFFFFF
##5B145E1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012F60
Deuteranopia (green-blind)
#25385C
Tritanopia (blue-blind)
#5E2138
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b145e;
/* rgb */ color: rgb(91, 20, 94);
/* oklch */ color: oklch(34.6% 0.137 326.3);
Tailwind
colors: {
  custom: {
    50: '#8c5a8c',
    500: '#5b145e',
    950: '#000000',
  },
}
SCSS
$custom: #5b145e;
$custom-light: #8c5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b145e",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 297.568,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34613,
    "c": 0.13659,
    "h": 326.3
  },
  "luminance": 0.03533
}

Semantic roles & 50–950 ramp

primary
#5B145E
secondary
#3C9638
accent
#E84047
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B145E

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

Preview Lab → · Contrast checker → · Palette generator →

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