#5B118E#5B118E

#5B118E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.2% C 0.183 H 305.2°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#5B118E
RGBrgb(91, 17, 142)
HSLhsl(276, 79%, 31%)
HSVhsv(276, 88%, 56%)
CMYKcmyk(35.9%, 88%, 0%, 44.3%)
CIE-LABlab(25.50, 52.33, -52.49)
CIE-LCHlch(25.50, 74.12, 314.91°)
OKLaboklab(38.2% 0.1058 -0.1497)
OKLCHoklch(38.2% 0.183 305.2)
XYZxyz(9.3962, 4.5781, 25.9746)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B118E #448E11
analogous
#1C118E #5B118E #8E1182
triadic
#5B118E #8E5B11 #118E5B
tetradic
#5B118E #8E1C11 #448E11 #11828E
square
#5B118E #8E1C11 #448E11 #11828E
split-complementary
#5B118E #828E11 #118E1C
monochromatic
#150421 #380A57 #5B118E #7E18C5 #9D33E7

Accessibility & contrast

On white

10.96
#5B118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5B118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B118E
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B118E#FFFFFF#000000##FFFFFF
##5B118E1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003C8C
Tritanopia (blue-blind)
#513653
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5b118e;
/* rgb */ color: rgb(91, 17, 142);
/* oklch */ color: oklch(38.2% 0.183 305.2);
Tailwind
colors: {
  custom: {
    50: '#8f5cb0',
    500: '#5b118e',
    950: '#000000',
  },
}
SCSS
$custom: #5b118e;
$custom-light: #8f5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b118e",
  "rgb": {
    "r": 91,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 275.52,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38198,
    "c": 0.18333,
    "h": 305.2
  },
  "luminance": 0.04578
}

Semantic roles & 50–950 ramp

primary
#5B118E
secondary
#71C238
accent
#F53382
background
#F9F5FA
surface
#F2E9F5
border
#CCC5CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B118E

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

Preview Lab → · Contrast checker → · Palette generator →

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