#5B1390#5B1390

#5B1390 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.5% C 0.184 H 304.4°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#5B1390
RGBrgb(91, 19, 144)
HSLhsl(275, 77%, 32%)
HSVhsv(275, 87%, 56%)
CMYKcmyk(36.8%, 86.8%, 0%, 43.5%)
CIE-LABlab(25.87, 52.21, -53.12)
CIE-LCHlch(25.87, 74.48, 314.50°)
OKLaboklab(38.51% 0.1039 -0.1516)
OKLCHoklch(38.51% 0.184 304.4)
XYZxyz(9.5801, 4.7035, 26.7833)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1390 #489013
analogous
#1D1390 #5B1390 #901387
triadic
#5B1390 #905B13 #13905B
tetradic
#5B1390 #901D13 #489013 #138790
square
#5B1390 #901D13 #489013 #138790
split-complementary
#5B1390 #879013 #13901D
monochromatic
#170524 #390C5A #5B1390 #7D1AC6 #9C39E5

Accessibility & contrast

On white

10.82
#5B1390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B1390
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1390#FFFFFF#000000##FFFFFF
##5B13901.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C93
Deuteranopia (green-blind)
#003D8E
Tritanopia (blue-blind)
#503855
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b1390;
/* rgb */ color: rgb(91, 19, 144);
/* oklch */ color: oklch(38.5% 0.184 304.4);
Tailwind
colors: {
  custom: {
    50: '#8f5db1',
    500: '#5b1390',
    950: '#000000',
  },
}
SCSS
$custom: #5b1390;
$custom-light: #8f5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1390",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 144
  },
  "hsl": {
    "h": 274.56,
    "s": 76.687,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38513,
    "c": 0.18376,
    "h": 304.4
  },
  "luminance": 0.04704
}

Semantic roles & 50–950 ramp

primary
#5B1390
secondary
#75C43B
accent
#F33585
background
#F9F5FB
surface
#F2E9F6
border
#CCC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B1390

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

Preview Lab → · Contrast checker → · Palette generator →

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