#5B1989#5B1989

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

Color values

HEX#5B1989
RGBrgb(91, 25, 137)
HSLhsl(275, 69%, 32%)
HSVhsv(275, 82%, 54%)
CMYKcmyk(33.6%, 81.8%, 0%, 46.3%)
CIE-LABlab(25.94, 48.61, -48.66)
CIE-LCHlch(25.94, 68.78, 314.97°)
OKLaboklab(38.37% 0.1017 -0.1385)
OKLCHoklch(38.37% 0.172 306.3)
XYZxyz(9.1764, 4.7256, 24.0908)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1989 #478919
analogous
#231989 #5B1989 #89197F
triadic
#5B1989 #895B19 #19895B
tetradic
#5B1989 #892319 #478919 #197F89
square
#5B1989 #892319 #478919 #197F89
split-complementary
#5B1989 #7F8919 #198923
monochromatic
#160621 #391055 #5B1989 #7D22BD #9C40DC

Accessibility & contrast

On white

10.80
#5B1989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1989
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1989#FFFFFF#000000##FFFFFF
##5B19891.0010.801.9510.80
#FFFFFF10.801.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1989;
/* rgb */ color: rgb(91, 25, 137);
/* oklch */ color: oklch(38.4% 0.172 306.3);
Tailwind
colors: {
  custom: {
    50: '#8e5fac',
    500: '#5b1989',
    950: '#000000',
  },
}
SCSS
$custom: #5b1989;
$custom-light: #8e5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1989",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 275.357,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38368,
    "c": 0.17187,
    "h": 306.3
  },
  "luminance": 0.04726
}

Semantic roles & 50–950 ramp

primary
#5B1989
secondary
#74BC41
accent
#EC3C84
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1989

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

Preview Lab → · Contrast checker → · Palette generator →

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