#5A1A97#5A1A97

#5A1A97 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.6% C 0.185 H 301.0°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#5A1A97
RGBrgb(90, 26, 151)
HSLhsl(271, 71%, 35%)
HSVhsv(271, 83%, 59%)
CMYKcmyk(40.4%, 82.8%, 0%, 40.8%)
CIE-LABlab(27.15, 51.39, -55.36)
CIE-LCHlch(27.15, 75.53, 312.87°)
OKLaboklab(39.56% 0.0952 -0.1582)
OKLCHoklch(39.56% 0.185 301)
XYZxyz(10.1704, 5.1467, 29.7298)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1A97 #57971A
analogous
#1C1A97 #5A1A97 #971A96
triadic
#5A1A97 #975A1A #1A975A
tetradic
#5A1A97 #971C1A #57971A #1A9697
square
#5A1A97 #971C1A #57971A #1A9697
split-complementary
#5A1A97 #96971A #1A971C
monochromatic
#1C082F #3B1163 #5A1A97 #7923CB #974BE0

Accessibility & contrast

On white

10.35
#5A1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#5A1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1A97
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1A97#FFFFFF#000000##FFFFFF
##5A1A971.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#4C3D5A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5a1a97;
/* rgb */ color: rgb(90, 26, 151);
/* oklch */ color: oklch(39.6% 0.185 301.0);
Tailwind
colors: {
  custom: {
    50: '#8f60b7',
    500: '#5a1a97',
    950: '#000000',
  },
}
SCSS
$custom: #5a1a97;
$custom-light: #8f60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1a97",
  "rgb": {
    "r": 90,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 270.72,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39559,
    "c": 0.18469,
    "h": 301
  },
  "luminance": 0.05147
}

Semantic roles & 50–950 ramp

primary
#5A1A97
secondary
#85C24B
accent
#ED3A92
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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