#5D198C#5D198C

#5D198C is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.9% C 0.175 H 306.3°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#5D198C
RGBrgb(93, 25, 140)
HSLhsl(275, 70%, 32%)
HSVhsv(275, 82%, 55%)
CMYKcmyk(33.6%, 82.1%, 0%, 45.1%)
CIE-LABlab(26.49, 49.64, -49.61)
CIE-LCHlch(26.49, 70.18, 315.02°)
OKLaboklab(38.9% 0.1038 -0.1413)
OKLCHoklch(38.9% 0.175 306.3)
XYZxyz(9.5944, 4.9160, 25.2493)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D198C #488C19
analogous
#23198C #5D198C #8C1982
triadic
#5D198C #8C5D19 #198C5D
tetradic
#5D198C #8C2319 #488C19 #19828C
square
#5D198C #8C2319 #488C19 #19828C
split-complementary
#5D198C #828C19 #198C23
monochromatic
#180624 #3B1058 #5D198C #7F22C0 #9E42DD

Accessibility & contrast

On white

10.59
#5D198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D198C
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D198C#FFFFFF#000000##FFFFFF
##5D198C1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#553853
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d198c;
/* rgb */ color: rgb(93, 25, 140);
/* oklch */ color: oklch(38.9% 0.175 306.3);
Tailwind
colors: {
  custom: {
    50: '#905fae',
    500: '#5d198c',
    950: '#000000',
  },
}
SCSS
$custom: #5d198c;
$custom-light: #905fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5d198c",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 275.478,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38898,
    "c": 0.17531,
    "h": 306.3
  },
  "luminance": 0.04916
}

Semantic roles & 50–950 ramp

primary
#5D198C
secondary
#75BE43
accent
#ED3B84
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D198C

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

Preview Lab → · Contrast checker → · Palette generator →

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