#5D198D#5D198D

#5D198D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.176 H 306.0°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#5D198D
RGBrgb(93, 25, 141)
HSLhsl(275, 70%, 33%)
HSVhsv(275, 82%, 55%)
CMYKcmyk(34%, 82.3%, 0%, 44.7%)
CIE-LABlab(26.58, 49.87, -50.09)
CIE-LCHlch(26.58, 70.69, 314.88°)
OKLaboklab(38.98% 0.1035 -0.1427)
OKLCHoklch(38.98% 0.176 306)
XYZxyz(9.6685, 4.9456, 25.6394)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D198D #498D19
analogous
#23198D #5D198D #8D1983
triadic
#5D198D #8D5D19 #198D5D
tetradic
#5D198D #8D2319 #498D19 #19838D
square
#5D198D #8D2319 #498D19 #19838D
split-complementary
#5D198D #838D19 #198D23
monochromatic
#180725 #3B1059 #5D198D #7F22C1 #9E43DE

Accessibility & contrast

On white

10.56
#5D198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5D198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D198D
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D198D#FFFFFF#000000##FFFFFF
##5D198D1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#543854
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d198d;
/* rgb */ color: rgb(93, 25, 141);
/* oklch */ color: oklch(39.0% 0.176 306.0);
Tailwind
colors: {
  custom: {
    50: '#905faf',
    500: '#5d198d',
    950: '#000000',
  },
}
SCSS
$custom: #5d198d;
$custom-light: #905faf;
$custom-dark: #000000;
JSON
{
  "hex": "#5d198d",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 275.172,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38984,
    "c": 0.17629,
    "h": 306
  },
  "luminance": 0.04946
}

Semantic roles & 50–950 ramp

primary
#5D198D
secondary
#76BF43
accent
#ED3B85
background
#F9F5FA
surface
#F2EAF5
border
#CCC6CF
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5D198D

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

Preview Lab → · Contrast checker → · Palette generator →

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