#5B1A88#5B1A88

#5B1A88 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.170 H 306.5°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#5B1A88
RGBrgb(91, 26, 136)
HSLhsl(275, 68%, 32%)
HSVhsv(275, 81%, 53%)
CMYKcmyk(33.1%, 80.9%, 0%, 46.7%)
CIE-LABlab(25.98, 48.00, -47.96)
CIE-LCHlch(25.98, 67.86, 315.02°)
OKLaboklab(38.37% 0.1012 -0.1365)
OKLCHoklch(38.37% 0.17 306.5)
XYZxyz(9.1267, 4.7406, 23.7220)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1A88 #47881A
analogous
#241A88 #5B1A88 #881A7E
triadic
#5B1A88 #885B1A #1A885B
tetradic
#5B1A88 #88241A #47881A #1A7E88
square
#5B1A88 #88241A #47881A #1A7E88
split-complementary
#5B1A88 #7E881A #1A8824
monochromatic
#160621 #391055 #5B1A88 #7D24BB #9C42DB

Accessibility & contrast

On white

10.78
#5B1A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5B1A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1A88
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1A88#FFFFFF#000000##FFFFFF
##5B1A881.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#533751
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b1a88;
/* rgb */ color: rgb(91, 26, 136);
/* oklch */ color: oklch(38.4% 0.170 306.5);
Tailwind
colors: {
  custom: {
    50: '#8e5fac',
    500: '#5b1a88',
    950: '#000000',
  },
}
SCSS
$custom: #5b1a88;
$custom-light: #8e5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1a88",
  "rgb": {
    "r": 91,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 275.455,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38373,
    "c": 0.16989,
    "h": 306.5
  },
  "luminance": 0.04741
}

Semantic roles & 50–950 ramp

primary
#5B1A88
secondary
#74BB43
accent
#EB3D84
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1A88

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

Preview Lab → · Contrast checker → · Palette generator →

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