#5B145F#5B145F

#5B145F is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.137 H 325.7°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#5B145F
RGBrgb(91, 20, 95)
HSLhsl(297, 65%, 23%)
HSVhsv(297, 79%, 37%)
CMYKcmyk(4.2%, 78.9%, 0%, 62.7%)
CIE-LABlab(22.13, 41.48, -27.86)
CIE-LCHlch(22.13, 49.97, 326.11°)
OKLaboklab(34.68% 0.1135 -0.0775)
OKLCHoklch(34.68% 0.137 325.7)
XYZxyz(6.6300, 3.5511, 11.1605)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B145F #185F14
analogous
#35145F #5B145F #5F143D
triadic
#5B145F #5F5B14 #145F5B
tetradic
#5B145F #5F3514 #185F14 #143D5F
square
#5B145F #5F3514 #185F14 #143D5F
split-complementary
#5B145F #3D5F14 #145F35
monochromatic
#180519 #2B092C #5B145F #8B1F92 #BC29C4

Accessibility & contrast

On white

12.28
#5B145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B145F
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B145F#FFFFFF#000000##FFFFFF
##5B145F1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F61
Deuteranopia (green-blind)
#25385D
Tritanopia (blue-blind)
#5D2138
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b145f;
/* rgb */ color: rgb(91, 20, 95);
/* oklch */ color: oklch(34.7% 0.137 325.7);
Tailwind
colors: {
  custom: {
    50: '#8c5a8d',
    500: '#5b145f',
    950: '#000000',
  },
}
SCSS
$custom: #5b145f;
$custom-light: #8c5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b145f",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 296.8,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.3468,
    "c": 0.13747,
    "h": 325.7
  },
  "luminance": 0.03551
}

Semantic roles & 50–950 ramp

primary
#5B145F
secondary
#3D9738
accent
#E84049
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B145F

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

Preview Lab → · Contrast checker → · Palette generator →

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