#5B138A#5B138A

#5B138A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 38.0% C 0.178 H 306.5°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#5B138A
RGBrgb(91, 19, 138)
HSLhsl(276, 76%, 31%)
HSVhsv(276, 86%, 54%)
CMYKcmyk(34.1%, 86.2%, 0%, 45.9%)
CIE-LABlab(25.34, 50.85, -50.26)
CIE-LCHlch(25.34, 71.50, 315.33°)
OKLaboklab(37.98% 0.1059 -0.1432)
OKLCHoklch(37.98% 0.178 306.5)
XYZxyz(9.1337, 4.5250, 24.4321)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B138A #428A13
analogous
#20138A #5B138A #8A137D
triadic
#5B138A #8A5B13 #138A5B
tetradic
#5B138A #8A2013 #428A13 #137D8A
square
#5B138A #8A2013 #428A13 #137D8A
split-complementary
#5B138A #7D8A13 #138A20
monochromatic
#14041E #380C54 #5B138A #7E1AC0 #9E34E3

Accessibility & contrast

On white

11.02
#5B138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5B138A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B138A
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B138A#FFFFFF#000000##FFFFFF
##5B138A1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#523551
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b138a;
/* rgb */ color: rgb(91, 19, 138);
/* oklch */ color: oklch(38.0% 0.178 306.5);
Tailwind
colors: {
  custom: {
    50: '#8f5cad',
    500: '#5b138a',
    950: '#000000',
  },
}
SCSS
$custom: #5b138a;
$custom-light: #8f5cad;
$custom-dark: #000000;
JSON
{
  "hex": "#5b138a",
  "rgb": {
    "r": 91,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 276.303,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37977,
    "c": 0.17809,
    "h": 306.5
  },
  "luminance": 0.04525
}

Semantic roles & 50–950 ramp

primary
#5B138A
secondary
#6FBE3A
accent
#F23580
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B138A

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

Preview Lab → · Contrast checker → · Palette generator →

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