#5A195E#5A195E

#5A195E is a dark, vivid purple. Relative luminance 0.037; OKLCH L 34.9% C 0.130 H 325.4°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#5A195E
RGBrgb(90, 25, 94)
HSLhsl(297, 58%, 23%)
HSVhsv(297, 73%, 37%)
CMYKcmyk(4.3%, 73.4%, 0%, 63.1%)
CIE-LABlab(22.58, 39.08, -26.50)
CIE-LCHlch(22.58, 47.21, 325.86°)
OKLaboklab(34.94% 0.1069 -0.0736)
OKLCHoklch(34.94% 0.13 325.4)
XYZxyz(6.5843, 3.6775, 10.9505)
Luminance0.0368 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A195E #1D5E19
analogous
#37195E #5A195E #5E193F
triadic
#5A195E #5E5A19 #195E5A
tetradic
#5A195E #5E3719 #1D5E19 #193F5E
square
#5A195E #5E3719 #1D5E19 #193F5E
split-complementary
#5A195E #3F5E19 #195E37
monochromatic
#170618 #2C0C2E #5A195E #88268E #B733BF

Accessibility & contrast

On white

12.10
#5A195E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5A195E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A195E
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A195E#FFFFFF#000000##FFFFFF
##5A195E1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093160
Deuteranopia (green-blind)
#27395C
Tritanopia (blue-blind)
#5C2439
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a195e;
/* rgb */ color: rgb(90, 25, 94);
/* oklch */ color: oklch(34.9% 0.130 325.4);
Tailwind
colors: {
  custom: {
    50: '#8b5c8c',
    500: '#5a195e',
    950: '#000000',
  },
}
SCSS
$custom: #5a195e;
$custom-light: #8b5c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a195e",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 94
  },
  "hsl": {
    "h": 296.522,
    "s": 57.983,
    "l": 23.333
  },
  "oklch": {
    "l": 0.34944,
    "c": 0.12977,
    "h": 325.4
  },
  "luminance": 0.03677
}

Semantic roles & 50–950 ramp

primary
#5A195E
secondary
#44943F
accent
#E14750
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A195E

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

Preview Lab → · Contrast checker → · Palette generator →

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