#5B188E#5B188E

#5B188E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.178 H 304.7°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#5B188E
RGBrgb(91, 24, 142)
HSLhsl(274, 71%, 33%)
HSVhsv(274, 83%, 56%)
CMYKcmyk(35.9%, 83.1%, 0%, 44.3%)
CIE-LABlab(26.25, 50.13, -51.27)
CIE-LCHlch(26.25, 71.70, 314.36°)
OKLaboklab(38.72% 0.1011 -0.1462)
OKLCHoklch(38.72% 0.178 304.7)
XYZxyz(9.5224, 4.8305, 26.0167)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B188E #4B8E18
analogous
#20188E #5B188E #8E1886
triadic
#5B188E #8E5B18 #188E5B
tetradic
#5B188E #8E2018 #4B8E18 #18868E
square
#5B188E #8E2018 #4B8E18 #18868E
split-complementary
#5B188E #868E18 #188E20
monochromatic
#180625 #390F5A #5B188E #7D21C2 #9B41DF

Accessibility & contrast

On white

10.68
#5B188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5B188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B188E
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B188E#FFFFFF#000000##FFFFFF
##5B188E1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#513854
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b188e;
/* rgb */ color: rgb(91, 24, 142);
/* oklch */ color: oklch(38.7% 0.178 304.7);
Tailwind
colors: {
  custom: {
    50: '#8f5fb0',
    500: '#5b188e',
    950: '#000000',
  },
}
SCSS
$custom: #5b188e;
$custom-light: #8f5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b188e",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 274.068,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38716,
    "c": 0.17772,
    "h": 304.7
  },
  "luminance": 0.0483
}

Semantic roles & 50–950 ramp

primary
#5B188E
secondary
#78C042
accent
#EE3A88
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B188E

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

Preview Lab → · Contrast checker → · Palette generator →

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