#5B188D#5B188D

#5B188D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.177 H 305.0°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#5B188D
RGBrgb(91, 24, 141)
HSLhsl(274, 71%, 32%)
HSVhsv(274, 83%, 55%)
CMYKcmyk(35.5%, 83%, 0%, 44.7%)
CIE-LABlab(26.16, 49.89, -50.79)
CIE-LCHlch(26.16, 71.20, 314.49°)
OKLaboklab(38.63% 0.1014 -0.1448)
OKLCHoklch(38.63% 0.177 305)
XYZxyz(9.4476, 4.8006, 25.6230)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B188D #4A8D18
analogous
#21188D #5B188D #8D1885
triadic
#5B188D #8D5B18 #188D5B
tetradic
#5B188D #8D2118 #4A8D18 #18858D
square
#5B188D #8D2118 #4A8D18 #18858D
split-complementary
#5B188D #858D18 #188D21
monochromatic
#170624 #390F59 #5B188D #7D21C1 #9B41DF

Accessibility & contrast

On white

10.71
#5B188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5B188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B188D
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B188D#FFFFFF#000000##FFFFFF
##5B188D1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b188d;
/* rgb */ color: rgb(91, 24, 141);
/* oklch */ color: oklch(38.6% 0.177 305.0);
Tailwind
colors: {
  custom: {
    50: '#8f5faf',
    500: '#5b188d',
    950: '#000000',
  },
}
SCSS
$custom: #5b188d;
$custom-light: #8f5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#5b188d",
  "rgb": {
    "r": 91,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 274.359,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38629,
    "c": 0.17674,
    "h": 305
  },
  "luminance": 0.04801
}

Semantic roles & 50–950 ramp

primary
#5B188D
secondary
#77BF42
accent
#EE3A87
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B188D

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

Preview Lab → · Contrast checker → · Palette generator →

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