#5B1E89#5B1E89

#5B1E89 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.167 H 305.7°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#5B1E89
RGBrgb(91, 30, 137)
HSLhsl(274, 64%, 33%)
HSVhsv(274, 78%, 54%)
CMYKcmyk(33.6%, 78.1%, 0%, 46.3%)
CIE-LABlab(26.62, 46.65, -47.55)
CIE-LCHlch(26.62, 66.61, 314.45°)
OKLaboklab(38.84% 0.0974 -0.1353)
OKLCHoklch(38.84% 0.167 305.7)
XYZxyz(9.2930, 4.9589, 24.1297)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1E89 #4C891E
analogous
#261E89 #5B1E89 #891E81
triadic
#5B1E89 #895B1E #1E895B
tetradic
#5B1E89 #89261E #4C891E #1E8189
square
#5B1E89 #89261E #4C891E #1E8189
split-complementary
#5B1E89 #81891E #1E8926
monochromatic
#180825 #3A1357 #5B1E89 #7C29BB #9B4AD7

Accessibility & contrast

On white

10.54
#5B1E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5B1E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1E89
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1E89#FFFFFF#000000##FFFFFF
##5B1E891.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8C
Deuteranopia (green-blind)
#003F87
Tritanopia (blue-blind)
#533953
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b1e89;
/* rgb */ color: rgb(91, 30, 137);
/* oklch */ color: oklch(38.8% 0.167 305.7);
Tailwind
colors: {
  custom: {
    50: '#8e61ac',
    500: '#5b1e89',
    950: '#000000',
  },
}
SCSS
$custom: #5b1e89;
$custom-light: #8e61ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1e89",
  "rgb": {
    "r": 91,
    "g": 30,
    "b": 137
  },
  "hsl": {
    "h": 274.206,
    "s": 64.072,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38844,
    "c": 0.1667,
    "h": 305.7
  },
  "luminance": 0.04959
}

Semantic roles & 50–950 ramp

primary
#5B1E89
secondary
#7ABA49
accent
#E74188
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5B1E89

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

Preview Lab → · Contrast checker → · Palette generator →

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