#5B155F#5B155F

#5B155F is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.136 H 325.6°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#5B155F
RGBrgb(91, 21, 95)
HSLhsl(297, 64%, 23%)
HSVhsv(297, 78%, 37%)
CMYKcmyk(4.2%, 77.9%, 0%, 62.7%)
CIE-LABlab(22.26, 41.11, -27.66)
CIE-LCHlch(22.26, 49.55, 326.07°)
OKLaboklab(34.77% 0.1125 -0.0769)
OKLCHoklch(34.77% 0.136 325.6)
XYZxyz(6.6480, 3.5871, 11.1665)
Luminance0.0359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B155F #195F15
analogous
#36155F #5B155F #5F153E
triadic
#5B155F #5F5B15 #155F5B
tetradic
#5B155F #5F3615 #195F15 #153E5F
square
#5B155F #5F3615 #195F15 #153E5F
split-complementary
#5B155F #3E5F15 #155F36
monochromatic
#180619 #2B0A2D #5B155F #8B2091 #BB2BC3

Accessibility & contrast

On white

12.23
#5B155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5B155F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B155F
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B155F#FFFFFF#000000##FFFFFF
##5B155F1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013061
Deuteranopia (green-blind)
#25385D
Tritanopia (blue-blind)
#5D2239
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b155f;
/* rgb */ color: rgb(91, 21, 95);
/* oklch */ color: oklch(34.8% 0.136 325.6);
Tailwind
colors: {
  custom: {
    50: '#8c5b8d',
    500: '#5b155f',
    950: '#000000',
  },
}
SCSS
$custom: #5b155f;
$custom-light: #8c5b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b155f",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 296.757,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34771,
    "c": 0.1363,
    "h": 325.6
  },
  "luminance": 0.03587
}

Semantic roles & 50–950 ramp

primary
#5B155F
secondary
#3F963A
accent
#E7414A
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B155F

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

Preview Lab → · Contrast checker → · Palette generator →

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