#5B1485#5B1485

#5B1485 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.173 H 308.2°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#5B1485
RGBrgb(91, 20, 133)
HSLhsl(278, 74%, 30%)
HSVhsv(278, 85%, 52%)
CMYKcmyk(31.6%, 85%, 0%, 47.8%)
CIE-LABlab(25.01, 49.41, -47.67)
CIE-LCHlch(25.01, 68.66, 316.03°)
OKLaboklab(37.61% 0.1067 -0.1356)
OKLCHoklch(37.61% 0.173 308.2)
XYZxyz(8.7973, 4.4181, 22.5751)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1485 #3E8514
analogous
#221485 #5B1485 #851477
triadic
#5B1485 #855B14 #14855B
tetradic
#5B1485 #852214 #3E8514 #147785
square
#5B1485 #852214 #3E8514 #147785
split-complementary
#5B1485 #778514 #148522
monochromatic
#12041B #370C50 #5B1485 #7F1CBA #A033E0

Accessibility & contrast

On white

11.15
#5B1485 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5B1485 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1485
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1485#FFFFFF#000000##FFFFFF
##5B14851.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003C83
Tritanopia (blue-blind)
#54334E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b1485;
/* rgb */ color: rgb(91, 20, 133);
/* oklch */ color: oklch(37.6% 0.173 308.2);
Tailwind
colors: {
  custom: {
    50: '#8e5da9',
    500: '#5b1485',
    950: '#000000',
  },
}
SCSS
$custom: #5b1485;
$custom-light: #8e5da9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1485",
  "rgb": {
    "r": 91,
    "g": 20,
    "b": 133
  },
  "hsl": {
    "h": 277.699,
    "s": 73.856,
    "l": 30
  },
  "oklch": {
    "l": 0.37614,
    "c": 0.17255,
    "h": 308.2
  },
  "luminance": 0.04418
}

Semantic roles & 50–950 ramp

primary
#5B1485
secondary
#6ABA3B
accent
#F1377C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1485

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

Preview Lab → · Contrast checker → · Palette generator →

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