#5B187D#5B187D

#5B187D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.161 H 310.9°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#5B187D
RGBrgb(91, 24, 125)
HSLhsl(280, 68%, 29%)
HSVhsv(280, 81%, 49%)
CMYKcmyk(27.2%, 80.8%, 0%, 51%)
CIE-LABlab(24.82, 46.24, -42.93)
CIE-LCHlch(24.82, 63.10, 317.13°)
OKLaboklab(37.28% 0.1056 -0.1217)
OKLCHoklch(37.28% 0.161 310.9)
XYZxyz(8.3420, 4.3583, 19.7999)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B187D #3A7D18
analogous
#29187D #5B187D #7D186D
triadic
#5B187D #7D5B18 #187D5B
tetradic
#5B187D #7D2918 #3A7D18 #186D7D
square
#5B187D #7D2918 #3A7D18 #186D7D
split-complementary
#5B187D #6D7D18 #187D29
monochromatic
#13051A #360E4A #5B187D #8022B0 #A237D9

Accessibility & contrast

On white

11.22
#5B187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5B187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B187D
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B187D#FFFFFF#000000##FFFFFF
##5B187D1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#56314A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5b187d;
/* rgb */ color: rgb(91, 24, 125);
/* oklch */ color: oklch(37.3% 0.161 310.9);
Tailwind
colors: {
  custom: {
    50: '#8e5ea3',
    500: '#5b187d',
    950: '#000000',
  },
}
SCSS
$custom: #5b187d;
$custom-light: #8e5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b187d",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 279.802,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37278,
    "c": 0.16109,
    "h": 310.9
  },
  "luminance": 0.04358
}

Semantic roles & 50–950 ramp

primary
#5B187D
secondary
#66B23F
accent
#EB3D78
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5B187D

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

Preview Lab → · Contrast checker → · Palette generator →

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