#5B198A#5B198A

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

Color values

HEX#5B198A
RGBrgb(91, 25, 138)
HSLhsl(275, 69%, 32%)
HSVhsv(275, 82%, 54%)
CMYKcmyk(34.1%, 81.9%, 0%, 45.9%)
CIE-LABlab(26.02, 48.84, -49.14)
CIE-LCHlch(26.02, 69.28, 314.82°)
OKLaboklab(38.45% 0.1014 -0.14)
OKLCHoklch(38.45% 0.173 305.9)
XYZxyz(9.2484, 4.7545, 24.4703)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B198A #488A19
analogous
#22198A #5B198A #8A1981
triadic
#5B198A #8A5B19 #198A5B
tetradic
#5B198A #8A2219 #488A19 #19818A
square
#5B198A #8A2219 #488A19 #19818A
split-complementary
#5B198A #818A19 #198A22
monochromatic
#170622 #391056 #5B198A #7D22BE #9C41DD

Accessibility & contrast

On white

10.76
#5B198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5B198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B198A
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B198A#FFFFFF#000000##FFFFFF
##5B198A1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#523752
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b198a;
/* rgb */ color: rgb(91, 25, 138);
/* oklch */ color: oklch(38.5% 0.173 305.9);
Tailwind
colors: {
  custom: {
    50: '#8f5fad',
    500: '#5b198a',
    950: '#000000',
  },
}
SCSS
$custom: #5b198a;
$custom-light: #8f5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#5b198a",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 275.044,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38454,
    "c": 0.17285,
    "h": 305.9
  },
  "luminance": 0.04754
}

Semantic roles & 50–950 ramp

primary
#5B198A
secondary
#75BD42
accent
#EC3C85
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B198A

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

Preview Lab → · Contrast checker → · Palette generator →

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