#5B189F#5B189F

#5B189F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.3% C 0.194 H 299.4°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#5B189F
RGBrgb(91, 24, 159)
HSLhsl(270, 74%, 36%)
HSVhsv(270, 85%, 62%)
CMYKcmyk(42.8%, 84.9%, 0%, 37.6%)
CIE-LABlab(27.79, 54.14, -59.19)
CIE-LCHlch(27.79, 80.22, 312.45°)
OKLaboklab(40.26% 0.0954 -0.1694)
OKLCHoklch(40.26% 0.194 299.4)
XYZxyz(10.8974, 5.3805, 33.2586)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B189F #5C9F18
analogous
#18189F #5B189F #9E189F
triadic
#5B189F #9F5B18 #189F5B
tetradic
#5B189F #9F1818 #5C9F18 #189F9E
square
#5B189F #9F1818 #5C9F18 #189F9E
split-complementary
#5B189F #9F9E18 #189F18
monochromatic
#1E0835 #3D106A #5B189F #7920D4 #984DE4

Accessibility & contrast

On white

10.11
#5B189F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5B189F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B189F
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B189F#FFFFFF#000000##FFFFFF
##5B189F1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A3
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#4A405E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5b189f;
/* rgb */ color: rgb(91, 24, 159);
/* oklch */ color: oklch(40.3% 0.194 299.4);
Tailwind
colors: {
  custom: {
    50: '#9160bc',
    500: '#5b189f',
    950: '#000000',
  },
}
SCSS
$custom: #5b189f;
$custom-light: #9160bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b189f",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 159
  },
  "hsl": {
    "h": 269.778,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4026,
    "c": 0.19445,
    "h": 299.4
  },
  "luminance": 0.05381
}

Semantic roles & 50–950 ramp

primary
#5B189F
secondary
#8AC64D
accent
#F03795
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5B189F

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

Preview Lab → · Contrast checker → · Palette generator →

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