#5A197C#5A197C

#5A197C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.159 H 310.7°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#5A197C
RGBrgb(90, 25, 124)
HSLhsl(279, 66%, 29%)
HSVhsv(279, 80%, 49%)
CMYKcmyk(27.4%, 79.8%, 0%, 51.4%)
CIE-LABlab(24.72, 45.45, -42.47)
CIE-LCHlch(24.72, 62.20, 316.94°)
OKLaboklab(37.15% 0.1035 -0.1204)
OKLCHoklch(37.15% 0.159 310.7)
XYZxyz(8.2015, 4.3244, 19.4675)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A197C #3B7C19
analogous
#29197C #5A197C #7C196D
triadic
#5A197C #7C5A19 #197C5A
tetradic
#5A197C #7C2919 #3B7C19 #196D7C
square
#5A197C #7C2919 #3B7C19 #196D7C
split-complementary
#5A197C #6D7C19 #197C29
monochromatic
#120519 #350F49 #5A197C #7F23AF #A138D7

Accessibility & contrast

On white

11.26
#5A197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5A197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A197C
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A197C#FFFFFF#000000##FFFFFF
##5A197C1.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#003C7A
Tritanopia (blue-blind)
#55314A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a197c;
/* rgb */ color: rgb(90, 25, 124);
/* oklch */ color: oklch(37.1% 0.159 310.7);
Tailwind
colors: {
  custom: {
    50: '#8d5ea3',
    500: '#5a197c',
    950: '#000000',
  },
}
SCSS
$custom: #5a197c;
$custom-light: #8d5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a197c",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 279.394,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37146,
    "c": 0.15874,
    "h": 310.7
  },
  "luminance": 0.04324
}

Semantic roles & 50–950 ramp

primary
#5A197C
secondary
#67B040
accent
#E93E79
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0D050F
muted
#7D797F

Preview Lab

Preview with #5A197C

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

Preview Lab → · Contrast checker → · Palette generator →

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