#5D198B#5D198B

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

Color values

HEX#5D198B
RGBrgb(93, 25, 139)
HSLhsl(276, 70%, 32%)
HSVhsv(276, 82%, 55%)
CMYKcmyk(33.1%, 82%, 0%, 45.5%)
CIE-LABlab(26.41, 49.41, -49.12)
CIE-LCHlch(26.41, 69.68, 315.17°)
OKLaboklab(38.81% 0.1041 -0.1398)
OKLCHoklch(38.81% 0.174 306.7)
XYZxyz(9.5210, 4.8866, 24.8627)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D198B #478B19
analogous
#24198B #5D198B #8B1980
triadic
#5D198B #8B5D19 #198B5D
tetradic
#5D198B #8B2419 #478B19 #19808B
square
#5D198B #8B2419 #478B19 #19808B
split-complementary
#5D198B #808B19 #198B24
monochromatic
#180623 #3A1057 #5D198B #8022BF #9E41DD

Accessibility & contrast

On white

10.62
#5D198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5D198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D198B
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D198B#FFFFFF#000000##FFFFFF
##5D198B1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d198b;
/* rgb */ color: rgb(93, 25, 139);
/* oklch */ color: oklch(38.8% 0.174 306.7);
Tailwind
colors: {
  custom: {
    50: '#905fae',
    500: '#5d198b',
    950: '#000000',
  },
}
SCSS
$custom: #5d198b;
$custom-light: #905fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d198b",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 275.789,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38812,
    "c": 0.17433,
    "h": 306.7
  },
  "luminance": 0.04886
}

Semantic roles & 50–950 ramp

primary
#5D198B
secondary
#74BE42
accent
#EC3B83
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D198B

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

Preview Lab → · Contrast checker → · Palette generator →

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