#5B145C#5B145C

#5B145C is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.135 H 327.4°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#5B145C
RGBrgb(91, 20, 92)
HSLhsl(299, 64%, 22%)
HSVhsv(299, 78%, 36%)
CMYKcmyk(1.1%, 78.3%, 0%, 63.9%)
CIE-LABlab(21.94, 40.91, -26.18)
CIE-LCHlch(21.94, 48.57, 327.38°)
OKLaboklab(34.48% 0.1136 -0.0726)
OKLCHoklch(34.48% 0.135 327.4)
XYZxyz(6.4962, 3.4976, 10.4561)
Luminance0.0350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B145C #155C14
analogous
#37145C #5B145C #5C1439
triadic
#5B145C #5C5B14 #145C5B
tetradic
#5B145C #5C3714 #155C14 #14395C
square
#5B145C #5C3714 #155C14 #14395C
split-complementary
#5B145C #395C14 #145C37
monochromatic
#190519 #29092A #5B145C #8D1F8E #BE2AC1

Accessibility & contrast

On white

12.36
#5B145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B145C
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B145C#FFFFFF#000000##FFFFFF
##5B145C1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052F5E
Deuteranopia (green-blind)
#27385A
Tritanopia (blue-blind)
#5E2037
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b145c;
/* rgb */ color: rgb(91, 20, 92);
/* oklch */ color: oklch(34.5% 0.135 327.4);
Tailwind
colors: {
  custom: {
    50: '#8c5a8a',
    500: '#5b145c',
    950: '#000000',
  },
}
SCSS
$custom: #5b145c;
$custom-light: #8c5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b145c",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 299.167,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3448,
    "c": 0.13484,
    "h": 327.4
  },
  "luminance": 0.03497
}

Semantic roles & 50–950 ramp

primary
#5B145C
secondary
#399438
accent
#E74143
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B145C

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

Preview Lab → · Contrast checker → · Palette generator →

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