#5D197E#5D197E

#5D197E is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.7% C 0.162 H 311.6°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#5D197E
RGBrgb(93, 25, 126)
HSLhsl(280, 67%, 30%)
HSVhsv(280, 80%, 49%)
CMYKcmyk(26.2%, 80.2%, 0%, 50.6%)
CIE-LABlab(25.35, 46.48, -42.69)
CIE-LCHlch(25.35, 63.11, 317.43°)
OKLaboklab(37.74% 0.1073 -0.1209)
OKLCHoklch(37.74% 0.162 311.6)
XYZxyz(8.6270, 4.5290, 20.1543)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D197E #3A7E19
analogous
#2B197E #5D197E #7E196D
triadic
#5D197E #7E5D19 #197E5D
tetradic
#5D197E #7E2B19 #3A7E19 #196D7E
square
#5D197E #7E2B19 #3A7E19 #196D7E
split-complementary
#5D197E #6D7E19 #197E2B
monochromatic
#13051A #370F4B #5D197E #8323B1 #A43AD8

Accessibility & contrast

On white

11.02
#5D197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5D197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D197E
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D197E#FFFFFF#000000##FFFFFF
##5D197E1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#033D7C
Tritanopia (blue-blind)
#59314B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d197e;
/* rgb */ color: rgb(93, 25, 126);
/* oklch */ color: oklch(37.7% 0.162 311.6);
Tailwind
colors: {
  custom: {
    50: '#8f5ea4',
    500: '#5d197e',
    950: '#000000',
  },
}
SCSS
$custom: #5d197e;
$custom-light: #8f5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d197e",
  "rgb": {
    "r": 93,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 280.396,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37738,
    "c": 0.16166,
    "h": 311.6
  },
  "luminance": 0.04529
}

Semantic roles & 50–950 ramp

primary
#5D197E
secondary
#66B241
accent
#EA3E76
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D197E

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

Preview Lab → · Contrast checker → · Palette generator →

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