#5B1889#5B1889

#5B1889 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.173 H 306.4°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#5B1889
RGBrgb(91, 24, 137)
HSLhsl(276, 70%, 32%)
HSVhsv(276, 82%, 54%)
CMYKcmyk(33.6%, 82.5%, 0%, 46.3%)
CIE-LABlab(25.81, 48.97, -48.86)
CIE-LCHlch(25.81, 69.18, 315.06°)
OKLaboklab(38.28% 0.1025 -0.1391)
OKLCHoklch(38.28% 0.173 306.4)
XYZxyz(9.1554, 4.6837, 24.0838)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1889 #468918
analogous
#231889 #5B1889 #89187F
triadic
#5B1889 #895B18 #18895B
tetradic
#5B1889 #892318 #468918 #187F89
square
#5B1889 #892318 #468918 #187F89
split-complementary
#5B1889 #7F8918 #188923
monochromatic
#160621 #380F55 #5B1889 #7E21BD #9C3EDD

Accessibility & contrast

On white

10.84
#5B1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5B1889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1889
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1889#FFFFFF#000000##FFFFFF
##5B18891.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b1889;
/* rgb */ color: rgb(91, 24, 137);
/* oklch */ color: oklch(38.3% 0.173 306.4);
Tailwind
colors: {
  custom: {
    50: '#8f5eac',
    500: '#5b1889',
    950: '#000000',
  },
}
SCSS
$custom: #5b1889;
$custom-light: #8f5eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1889",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 275.575,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38281,
    "c": 0.17282,
    "h": 306.4
  },
  "luminance": 0.04684
}

Semantic roles & 50–950 ramp

primary
#5B1889
secondary
#73BD40
accent
#ED3B83
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B1889

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

Preview Lab → · Contrast checker → · Palette generator →

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