#5B1154#5B1154

#5B1154 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.7% C 0.132 H 332.4°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#5B1154
RGBrgb(91, 17, 84)
HSLhsl(306, 69%, 21%)
HSVhsv(306, 81%, 36%)
CMYKcmyk(0%, 81.3%, 7.7%, 64.3%)
CIE-LABlab(21.08, 40.53, -22.20)
CIE-LCHlch(21.08, 46.21, 331.30°)
OKLaboklab(33.71% 0.1165 -0.061)
OKLCHoklch(33.71% 0.132 332.4)
XYZxyz(6.1151, 3.2657, 8.6941)
Luminance0.0326 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1154 #115B18
analogous
#3D115B #5B1154 #5B112F
triadic
#5B1154 #545B11 #11545B
tetradic
#5B1154 #5B3D11 #115B18 #112F5B
square
#5B1154 #5B3D11 #115B18 #112F5B
split-complementary
#5B1154 #2F5B11 #115B3D
monochromatic
#1A0518 #270724 #5B1154 #8F1B84 #C224B3

Accessibility & contrast

On white

12.70
#5B1154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1154
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1154#FFFFFF#000000##FFFFFF
##5B11541.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2C56
Deuteranopia (green-blind)
#2A3652
Tritanopia (blue-blind)
#5F1A32
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5b1154;
/* rgb */ color: rgb(91, 17, 84);
/* oklch */ color: oklch(33.7% 0.132 332.4);
Tailwind
colors: {
  custom: {
    50: '#8c5984',
    500: '#5b1154',
    950: '#000000',
  },
}
SCSS
$custom: #5b1154;
$custom-light: #8c5984;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1154",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 305.676,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33708,
    "c": 0.13156,
    "h": 332.4
  },
  "luminance": 0.03265
}

Semantic roles & 50–950 ramp

primary
#5B1154
secondary
#34943D
accent
#EB4D3C
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5B1154

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

Preview Lab → · Contrast checker → · Palette generator →

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