#5B198B#5B198B

#5B198B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.174 H 305.6°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#5B198B
RGBrgb(91, 25, 139)
HSLhsl(275, 70%, 32%)
HSVhsv(275, 82%, 55%)
CMYKcmyk(34.5%, 82%, 0%, 45.5%)
CIE-LABlab(26.11, 49.07, -49.63)
CIE-LCHlch(26.11, 69.79, 314.68°)
OKLaboklab(38.54% 0.1012 -0.1414)
OKLCHoklch(38.54% 0.174 305.6)
XYZxyz(9.3212, 4.7836, 24.8534)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B198B #498B19
analogous
#22198B #5B198B #8B1982
triadic
#5B198B #8B5B19 #198B5B
tetradic
#5B198B #8B2219 #498B19 #19828B
square
#5B198B #8B2219 #498B19 #19828B
split-complementary
#5B198B #828B19 #198B22
monochromatic
#170623 #391057 #5B198B #7D22BF #9B41DD

Accessibility & contrast

On white

10.73
#5B198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B198B
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B198B#FFFFFF#000000##FFFFFF
##5B198B1.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#523853
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b198b;
/* rgb */ color: rgb(91, 25, 139);
/* oklch */ color: oklch(38.5% 0.174 305.6);
Tailwind
colors: {
  custom: {
    50: '#8f5fae',
    500: '#5b198b',
    950: '#000000',
  },
}
SCSS
$custom: #5b198b;
$custom-light: #8f5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b198b",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 274.737,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3854,
    "c": 0.17384,
    "h": 305.6
  },
  "luminance": 0.04783
}

Semantic roles & 50–950 ramp

primary
#5B198B
secondary
#76BE42
accent
#EC3B86
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B198B

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

Preview Lab → · Contrast checker → · Palette generator →

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