#5B155E#5B155E

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

Color values

HEX#5B155E
RGBrgb(91, 21, 94)
HSLhsl(298, 63%, 23%)
HSVhsv(298, 78%, 37%)
CMYKcmyk(3.2%, 77.7%, 0%, 63.1%)
CIE-LABlab(22.19, 40.92, -27.10)
CIE-LCHlch(22.19, 49.08, 326.49°)
OKLaboklab(34.71% 0.1126 -0.0753)
OKLCHoklch(34.71% 0.135 326.2)
XYZxyz(6.6028, 3.5691, 10.9286)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B155E #185E15
analogous
#36155E #5B155E #5E153D
triadic
#5B155E #5E5B15 #155E5B
tetradic
#5B155E #5E3615 #185E15 #153D5E
square
#5B155E #5E3615 #185E15 #153D5E
split-complementary
#5B155E #3D5E15 #155E36
monochromatic
#180619 #2B0A2C #5B155E #8B2090 #BC2BC2

Accessibility & contrast

On white

12.25
#5B155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B155E
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B155E#FFFFFF#000000##FFFFFF
##5B155E1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b155e;
/* rgb */ color: rgb(91, 21, 94);
/* oklch */ color: oklch(34.7% 0.135 326.2);
Tailwind
colors: {
  custom: {
    50: '#8c5b8c',
    500: '#5b155e',
    950: '#000000',
  },
}
SCSS
$custom: #5b155e;
$custom-light: #8c5b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b155e",
  "rgb": {
    "r": 91,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 297.534,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34705,
    "c": 0.13541,
    "h": 326.2
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#5B155E
secondary
#3D9539
accent
#E74148
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5B155E

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

Preview Lab → · Contrast checker → · Palette generator →

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