#5B145D#5B145D

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

Color values

HEX#5B145D
RGBrgb(91, 20, 93)
HSLhsl(298, 65%, 22%)
HSVhsv(298, 78%, 36%)
CMYKcmyk(2.2%, 78.5%, 0%, 63.5%)
CIE-LABlab(22.00, 41.10, -26.74)
CIE-LCHlch(22.00, 49.03, 326.95°)
OKLaboklab(34.55% 0.1136 -0.0742)
OKLCHoklch(34.55% 0.136 326.8)
XYZxyz(6.5402, 3.5152, 10.6878)
Luminance0.0352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B145D #165D14
analogous
#37145D #5B145D #5D143B
triadic
#5B145D #5D5B14 #145D5B
tetradic
#5B145D #5D3714 #165D14 #143B5D
square
#5B145D #5D3714 #165D14 #143B5D
split-complementary
#5B145D #3B5D14 #145D37
monochromatic
#190519 #2A092B #5B145D #8C1F8F #BE2AC2

Accessibility & contrast

On white

12.33
#5B145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B145D
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B145D#FFFFFF#000000##FFFFFF
##5B145D1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032F5F
Deuteranopia (green-blind)
#26385B
Tritanopia (blue-blind)
#5E2037
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b145d;
/* rgb */ color: rgb(91, 20, 93);
/* oklch */ color: oklch(34.5% 0.136 326.8);
Tailwind
colors: {
  custom: {
    50: '#8c5a8b',
    500: '#5b145d',
    950: '#000000',
  },
}
SCSS
$custom: #5b145d;
$custom-light: #8c5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b145d",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 298.356,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.34546,
    "c": 0.13572,
    "h": 326.8
  },
  "luminance": 0.03515
}

Semantic roles & 50–950 ramp

primary
#5B145D
secondary
#3B9538
accent
#E84045
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B145D

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

Preview Lab → · Contrast checker → · Palette generator →

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