#5D198A#5D198A

#5D198A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.173 H 307.0°. Best body text is #FFFFFF at 10.65:1 contrast (WCAG AA passes).

Color values

HEX#5D198A
RGBrgb(93, 25, 138)
HSLhsl(276, 69%, 32%)
HSVhsv(276, 82%, 54%)
CMYKcmyk(32.6%, 81.9%, 0%, 45.9%)
CIE-LABlab(26.32, 49.18, -48.64)
CIE-LCHlch(26.32, 69.17, 315.32°)
OKLaboklab(38.73% 0.1044 -0.1384)
OKLCHoklch(38.73% 0.173 307)
XYZxyz(9.4483, 4.8575, 24.4797)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D198A #468A19
analogous
#24198A #5D198A #8A197F
triadic
#5D198A #8A5D19 #198A5D
tetradic
#5D198A #8A2419 #468A19 #197F8A
square
#5D198A #8A2419 #468A19 #197F8A
split-complementary
#5D198A #7F8A19 #198A24
monochromatic
#170622 #3A1056 #5D198A #8022BE #9F41DD

Accessibility & contrast

On white

10.65
#5D198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D198A
10.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D198A#FFFFFF#000000##FFFFFF
##5D198A1.0010.651.9710.65
#FFFFFF10.651.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d198a;
/* rgb */ color: rgb(93, 25, 138);
/* oklch */ color: oklch(38.7% 0.173 307.0);
Tailwind
colors: {
  custom: {
    50: '#905fad',
    500: '#5d198a',
    950: '#000000',
  },
}
SCSS
$custom: #5d198a;
$custom-light: #905fad;
$custom-dark: #000000;
JSON
{
  "hex": "#5d198a",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 276.106,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38727,
    "c": 0.17335,
    "h": 307
  },
  "luminance": 0.04857
}

Semantic roles & 50–950 ramp

primary
#5D198A
secondary
#73BD42
accent
#EC3C82
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D198A

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

Preview Lab → · Contrast checker → · Palette generator →

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