#5B1153#5B1153

#5B1153 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.6% C 0.131 H 333.0°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#5B1153
RGBrgb(91, 17, 83)
HSLhsl(306, 69%, 21%)
HSVhsv(306, 81%, 36%)
CMYKcmyk(0%, 81.3%, 8.8%, 64.3%)
CIE-LABlab(21.02, 40.36, -21.62)
CIE-LCHlch(21.02, 45.78, 331.83°)
OKLaboklab(33.65% 0.1165 -0.0594)
OKLCHoklch(33.65% 0.131 333)
XYZxyz(6.0762, 3.2501, 8.4893)
Luminance0.0325 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1153 #115B19
analogous
#3E115B #5B1153 #5B112E
triadic
#5B1153 #535B11 #11535B
tetradic
#5B1153 #5B3E11 #115B19 #112E5B
square
#5B1153 #5B3E11 #115B19 #112E5B
split-complementary
#5B1153 #2E5B11 #115B3E
monochromatic
#1A0518 #270724 #5B1153 #8F1B82 #C224B1

Accessibility & contrast

On white

12.73
#5B1153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5B1153 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1153
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1153#FFFFFF#000000##FFFFFF
##5B11531.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2C55
Deuteranopia (green-blind)
#2A3651
Tritanopia (blue-blind)
#5F1931
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5b1153;
/* rgb */ color: rgb(91, 17, 83);
/* oklch */ color: oklch(33.6% 0.131 333.0);
Tailwind
colors: {
  custom: {
    50: '#8c5983',
    500: '#5b1153',
    950: '#000000',
  },
}
SCSS
$custom: #5b1153;
$custom-light: #8c5983;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1153",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 83
  },
  "hsl": {
    "h": 306.486,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33647,
    "c": 0.13076,
    "h": 333
  },
  "luminance": 0.0325
}

Semantic roles & 50–950 ramp

primary
#5B1153
secondary
#34943E
accent
#EB4F3C
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B1153

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

Preview Lab → · Contrast checker → · Palette generator →

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