#5A197F#5A197F

#5A197F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.162 H 309.5°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#5A197F
RGBrgb(90, 25, 127)
HSLhsl(278, 67%, 30%)
HSVhsv(278, 80%, 50%)
CMYKcmyk(29.1%, 80.3%, 0%, 50.2%)
CIE-LABlab(24.96, 46.13, -43.98)
CIE-LCHlch(24.96, 63.73, 316.36°)
OKLaboklab(37.39% 0.1028 -0.1248)
OKLCHoklch(37.39% 0.162 309.5)
XYZxyz(8.3941, 4.4014, 20.4819)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A197F #3E7F19
analogous
#27197F #5A197F #7F1971
triadic
#5A197F #7F5A19 #197F5A
tetradic
#5A197F #7F2719 #3E7F19 #19717F
square
#5A197F #7F2719 #3E7F19 #19717F
split-complementary
#5A197F #717F19 #197F27
monochromatic
#12051A #360F4C #5A197F #7E23B2 #9F3AD8

Accessibility & contrast

On white

11.17
#5A197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5A197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A197F
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A197F#FFFFFF#000000##FFFFFF
##5A197F1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#54324C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a197f;
/* rgb */ color: rgb(90, 25, 127);
/* oklch */ color: oklch(37.4% 0.162 309.5);
Tailwind
colors: {
  custom: {
    50: '#8d5ea5',
    500: '#5a197f',
    950: '#000000',
  },
}
SCSS
$custom: #5a197f;
$custom-light: #8d5ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a197f",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 278.235,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37391,
    "c": 0.1617,
    "h": 309.5
  },
  "luminance": 0.04401
}

Semantic roles & 50–950 ramp

primary
#5A197F
secondary
#6AB341
accent
#EA3E7C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5A197F

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

Preview Lab → · Contrast checker → · Palette generator →

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