#5B1885#5B1885

#5B1885 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.169 H 307.8°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#5B1885
RGBrgb(91, 24, 133)
HSLhsl(277, 69%, 31%)
HSVhsv(277, 82%, 52%)
CMYKcmyk(31.6%, 82%, 0%, 47.8%)
CIE-LABlab(25.48, 48.05, -46.91)
CIE-LCHlch(25.48, 67.15, 315.69°)
OKLaboklab(37.94% 0.1036 -0.1334)
OKLCHoklch(37.94% 0.169 307.8)
XYZxyz(8.8738, 4.5710, 22.6006)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1885 #428518
analogous
#241885 #5B1885 #851878
triadic
#5B1885 #855B18 #18855B
tetradic
#5B1885 #852418 #428518 #187885
square
#5B1885 #852418 #428518 #187885
split-complementary
#5B1885 #788518 #188524
monochromatic
#14051D #380F51 #5B1885 #7E21B9 #9E3CDC

Accessibility & contrast

On white

10.97
#5B1885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5B1885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1885
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1885#FFFFFF#000000##FFFFFF
##5B18851.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003D83
Tritanopia (blue-blind)
#54344F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b1885;
/* rgb */ color: rgb(91, 24, 133);
/* oklch */ color: oklch(37.9% 0.169 307.8);
Tailwind
colors: {
  custom: {
    50: '#8e5ea9',
    500: '#5b1885',
    950: '#000000',
  },
}
SCSS
$custom: #5b1885;
$custom-light: #8e5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1885",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 276.881,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3794,
    "c": 0.1689,
    "h": 307.8
  },
  "luminance": 0.04571
}

Semantic roles & 50–950 ramp

primary
#5B1885
secondary
#6FB940
accent
#EC3C80
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1885

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

Preview Lab → · Contrast checker → · Palette generator →

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