#5B198E#5B198E

#5B198E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.177 H 304.6°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#5B198E
RGBrgb(91, 25, 142)
HSLhsl(274, 70%, 33%)
HSVhsv(274, 82%, 56%)
CMYKcmyk(35.9%, 82.4%, 0%, 44.3%)
CIE-LABlab(26.37, 49.77, -51.07)
CIE-LCHlch(26.37, 71.31, 314.26°)
OKLaboklab(38.8% 0.1003 -0.1456)
OKLCHoklch(38.8% 0.177 304.6)
XYZxyz(9.5434, 4.8724, 26.0236)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B198E #4C8E19
analogous
#20198E #5B198E #8E1986
triadic
#5B198E #8E5B19 #198E5B
tetradic
#5B198E #8E2019 #4C8E19 #19868E
square
#5B198E #8E2019 #4C8E19 #19868E
split-complementary
#5B198E #868E19 #198E20
monochromatic
#180726 #3A105A #5B198E #7C22C2 #9B43DE

Accessibility & contrast

On white

10.64
#5B198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5B198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B198E
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B198E#FFFFFF#000000##FFFFFF
##5B198E1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#513954
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b198e;
/* rgb */ color: rgb(91, 25, 142);
/* oklch */ color: oklch(38.8% 0.177 304.6);
Tailwind
colors: {
  custom: {
    50: '#8f5fb0',
    500: '#5b198e',
    950: '#000000',
  },
}
SCSS
$custom: #5b198e;
$custom-light: #8f5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b198e",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 273.846,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38801,
    "c": 0.17681,
    "h": 304.6
  },
  "luminance": 0.04872
}

Semantic roles & 50–950 ramp

primary
#5B198E
secondary
#7ABF44
accent
#ED3B88
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5B198E

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

Preview Lab → · Contrast checker → · Palette generator →

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