#5B189E#5B189E

#5B189E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.2% C 0.193 H 299.7°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#5B189E
RGBrgb(91, 24, 158)
HSLhsl(270, 74%, 36%)
HSVhsv(270, 85%, 62%)
CMYKcmyk(42.4%, 84.8%, 0%, 38%)
CIE-LABlab(27.70, 53.90, -58.73)
CIE-LCHlch(27.70, 79.72, 312.54°)
OKLaboklab(40.17% 0.0958 -0.1681)
OKLCHoklch(40.17% 0.193 299.7)
XYZxyz(10.8110, 5.3459, 32.8034)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B189E #5B9E18
analogous
#18189E #5B189E #9E189E
triadic
#5B189E #9E5B18 #189E5B
tetradic
#5B189E #9E1818 #5B9E18 #189E9E
square
#5B189E #9E1818 #5B9E18 #189E9E
split-complementary
#5B189E #9E9E18 #189E18
monochromatic
#1E0834 #3C1069 #5B189E #7A20D3 #984DE4

Accessibility & contrast

On white

10.15
#5B189E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5B189E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B189E
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B189E#FFFFFF#000000##FFFFFF
##5B189E1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#4B405E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5b189e;
/* rgb */ color: rgb(91, 24, 158);
/* oklch */ color: oklch(40.2% 0.193 299.7);
Tailwind
colors: {
  custom: {
    50: '#9160bc',
    500: '#5b189e',
    950: '#000000',
  },
}
SCSS
$custom: #5b189e;
$custom-light: #9160bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b189e",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 158
  },
  "hsl": {
    "h": 270,
    "s": 73.626,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40167,
    "c": 0.19347,
    "h": 299.7
  },
  "luminance": 0.05346
}

Semantic roles & 50–950 ramp

primary
#5B189E
secondary
#89C64C
accent
#F03894
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5B189E

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

Preview Lab → · Contrast checker → · Palette generator →

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