#5B1888#5B1888

#5B1888 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.172 H 306.7°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#5B1888
RGBrgb(91, 24, 136)
HSLhsl(276, 70%, 31%)
HSVhsv(276, 82%, 53%)
CMYKcmyk(33.1%, 82.4%, 0%, 46.7%)
CIE-LABlab(25.73, 48.74, -48.37)
CIE-LCHlch(25.73, 68.67, 315.21°)
OKLaboklab(38.2% 0.1028 -0.1377)
OKLCHoklch(38.2% 0.172 306.7)
XYZxyz(9.0840, 4.6551, 23.7077)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1888 #458818
analogous
#231888 #5B1888 #88187D
triadic
#5B1888 #885B18 #18885B
tetradic
#5B1888 #882318 #458818 #187D88
square
#5B1888 #882318 #458818 #187D88
split-complementary
#5B1888 #7D8818 #188823
monochromatic
#150620 #380F54 #5B1888 #7E21BC #9D3EDD

Accessibility & contrast

On white

10.88
#5B1888 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5B1888 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1888
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1888#FFFFFF#000000##FFFFFF
##5B18881.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#533651
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b1888;
/* rgb */ color: rgb(91, 24, 136);
/* oklch */ color: oklch(38.2% 0.172 306.7);
Tailwind
colors: {
  custom: {
    50: '#8e5eac',
    500: '#5b1888',
    950: '#000000',
  },
}
SCSS
$custom: #5b1888;
$custom-light: #8e5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1888",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 136
  },
  "hsl": {
    "h": 275.893,
    "s": 70,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38196,
    "c": 0.17184,
    "h": 306.7
  },
  "luminance": 0.04655
}

Semantic roles & 50–950 ramp

primary
#5B1888
secondary
#72BC40
accent
#ED3B82
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1888

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

Preview Lab → · Contrast checker → · Palette generator →

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