#5A197B#5A197B

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

Color values

HEX#5A197B
RGBrgb(90, 25, 123)
HSLhsl(280, 66%, 29%)
HSVhsv(280, 80%, 48%)
CMYKcmyk(26.8%, 79.7%, 0%, 51.8%)
CIE-LABlab(24.64, 45.22, -41.96)
CIE-LCHlch(24.64, 61.69, 317.14°)
OKLaboklab(37.07% 0.1037 -0.1189)
OKLCHoklch(37.07% 0.158 311.1)
XYZxyz(8.1385, 4.2992, 19.1362)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A197B #3A7B19
analogous
#29197B #5A197B #7B196B
triadic
#5A197B #7B5A19 #197B5A
tetradic
#5A197B #7B2919 #3A7B19 #196B7B
square
#5A197B #7B2919 #3A7B19 #196B7B
split-complementary
#5A197B #6B7B19 #197B29
monochromatic
#130519 #350F48 #5A197B #7F23AE #A138D7

Accessibility & contrast

On white

11.29
#5A197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A197B
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A197B#FFFFFF#000000##FFFFFF
##5A197B1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#033C79
Tritanopia (blue-blind)
#563149
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a197b;
/* rgb */ color: rgb(90, 25, 123);
/* oklch */ color: oklch(37.1% 0.158 311.1);
Tailwind
colors: {
  custom: {
    50: '#8d5ea2',
    500: '#5a197b',
    950: '#000000',
  },
}
SCSS
$custom: #5a197b;
$custom-light: #8d5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a197b",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 279.796,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37066,
    "c": 0.15775,
    "h": 311.1
  },
  "luminance": 0.04299
}

Semantic roles & 50–950 ramp

primary
#5A197B
secondary
#66AF40
accent
#E93F78
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0D050F
muted
#7D797F

Preview Lab

Preview with #5A197B

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

Preview Lab → · Contrast checker → · Palette generator →

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