#5D198E#5D198E

#5D198E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.177 H 305.6°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#5D198E
RGBrgb(93, 25, 142)
HSLhsl(275, 70%, 33%)
HSVhsv(275, 82%, 56%)
CMYKcmyk(34.5%, 82.4%, 0%, 44.3%)
CIE-LABlab(26.66, 50.10, -50.57)
CIE-LCHlch(26.66, 71.19, 314.73°)
OKLaboklab(39.07% 0.1033 -0.1441)
OKLCHoklch(39.07% 0.177 305.6)
XYZxyz(9.7432, 4.9755, 26.0330)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D198E #4A8E19
analogous
#23198E #5D198E #8E1984
triadic
#5D198E #8E5D19 #198E5D
tetradic
#5D198E #8E2319 #4A8E19 #19848E
square
#5D198E #8E2319 #4A8E19 #19848E
split-complementary
#5D198E #848E19 #198E23
monochromatic
#190726 #3B105A #5D198E #7F22C2 #9D43DE

Accessibility & contrast

On white

10.53
#5D198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5D198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D198E
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D198E#FFFFFF#000000##FFFFFF
##5D198E1.0010.532.0010.53
#FFFFFF10.531.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#543954
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d198e;
/* rgb */ color: rgb(93, 25, 142);
/* oklch */ color: oklch(39.1% 0.177 305.6);
Tailwind
colors: {
  custom: {
    50: '#905fb0',
    500: '#5d198e',
    950: '#000000',
  },
}
SCSS
$custom: #5d198e;
$custom-light: #905fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d198e",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 274.872,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3907,
    "c": 0.17726,
    "h": 305.6
  },
  "luminance": 0.04975
}

Semantic roles & 50–950 ramp

primary
#5D198E
secondary
#77BF44
accent
#ED3B85
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5D198E

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

Preview Lab → · Contrast checker → · Palette generator →

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