#5B1A7D#5B1A7D

#5B1A7D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.159 H 310.7°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#5B1A7D
RGBrgb(91, 26, 125)
HSLhsl(279, 66%, 30%)
HSVhsv(279, 79%, 49%)
CMYKcmyk(27.2%, 79.2%, 0%, 51%)
CIE-LABlab(25.09, 45.48, -42.50)
CIE-LCHlch(25.09, 62.24, 316.94°)
OKLaboklab(37.46% 0.1037 -0.1204)
OKLCHoklch(37.46% 0.159 310.7)
XYZxyz(8.3847, 4.4438, 19.8141)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1A7D #3C7D1A
analogous
#2A1A7D #5B1A7D #7D1A6E
triadic
#5B1A7D #7D5B1A #1A7D5B
tetradic
#5B1A7D #7D2A1A #3C7D1A #1A6E7D
square
#5B1A7D #7D2A1A #3C7D1A #1A6E7D
split-complementary
#5B1A7D #6E7D1A #1A7D2A
monochromatic
#120519 #360F4A #5B1A7D #8025B0 #A13BD6

Accessibility & contrast

On white

11.12
#5B1A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5B1A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1A7D
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1A7D#FFFFFF#000000##FFFFFF
##5B1A7D1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#023D7B
Tritanopia (blue-blind)
#56324B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b1a7d;
/* rgb */ color: rgb(91, 26, 125);
/* oklch */ color: oklch(37.5% 0.159 310.7);
Tailwind
colors: {
  custom: {
    50: '#8d5ea3',
    500: '#5b1a7d',
    950: '#000000',
  },
}
SCSS
$custom: #5b1a7d;
$custom-light: #8d5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1a7d",
  "rgb": {
    "r": 91,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 279.394,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37465,
    "c": 0.15895,
    "h": 310.7
  },
  "luminance": 0.04444
}

Semantic roles & 50–950 ramp

primary
#5B1A7D
secondary
#68B142
accent
#E93F79
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B1A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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