#5B198C#5B198C

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

Color values

HEX#5B198C
RGBrgb(91, 25, 140)
HSLhsl(274, 70%, 32%)
HSVhsv(274, 82%, 55%)
CMYKcmyk(35%, 82.1%, 0%, 45.1%)
CIE-LABlab(26.19, 49.31, -50.11)
CIE-LCHlch(26.19, 70.30, 314.54°)
OKLaboklab(38.63% 0.1009 -0.1428)
OKLCHoklch(38.63% 0.175 305.2)
XYZxyz(9.3946, 4.8129, 25.2399)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B198C #4A8C19
analogous
#22198C #5B198C #8C1983
triadic
#5B198C #8C5B19 #198C5B
tetradic
#5B198C #8C2219 #4A8C19 #19838C
square
#5B198C #8C2219 #4A8C19 #19838C
split-complementary
#5B198C #838C19 #198C22
monochromatic
#170624 #391058 #5B198C #7D22C0 #9B42DD

Accessibility & contrast

On white

10.70
#5B198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B198C
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B198C#FFFFFF#000000##FFFFFF
##5B198C1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b198c;
/* rgb */ color: rgb(91, 25, 140);
/* oklch */ color: oklch(38.6% 0.175 305.2);
Tailwind
colors: {
  custom: {
    50: '#8f5fae',
    500: '#5b198c',
    950: '#000000',
  },
}
SCSS
$custom: #5b198c;
$custom-light: #8f5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5b198c",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 274.435,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38627,
    "c": 0.17483,
    "h": 305.2
  },
  "luminance": 0.04813
}

Semantic roles & 50–950 ramp

primary
#5B198C
secondary
#77BE43
accent
#ED3B87
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5B198C

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

Preview Lab → · Contrast checker → · Palette generator →

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