#5A1D7A#5A1D7A

#5A1D7A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.152 H 311.1°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#5A1D7A
RGBrgb(90, 29, 122)
HSLhsl(279, 62%, 30%)
HSVhsv(279, 76%, 48%)
CMYKcmyk(26.2%, 76.2%, 0%, 52.2%)
CIE-LABlab(25.13, 43.36, -40.53)
CIE-LCHlch(25.13, 59.35, 316.93°)
OKLaboklab(37.39% 0.0999 -0.1147)
OKLCHoklch(37.39% 0.152 311.1)
XYZxyz(8.1680, 4.4577, 18.8387)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1D7A #3D7A1D
analogous
#2C1D7A #5A1D7A #7A1D6C
triadic
#5A1D7A #7A5A1D #1D7A5A
tetradic
#5A1D7A #7A2C1D #3D7A1D #1D6C7A
square
#5A1D7A #7A2C1D #3D7A1D #1D6C7A
split-complementary
#5A1D7A #6C7A1D #1D7A2C
monochromatic
#120619 #361149 #5A1D7A #7E29AB #9F40D2

Accessibility & contrast

On white

11.10
#5A1D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5A1D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1D7A
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1D7A#FFFFFF#000000##FFFFFF
##5A1D7A1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#0C3D78
Tritanopia (blue-blind)
#56324A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a1d7a;
/* rgb */ color: rgb(90, 29, 122);
/* oklch */ color: oklch(37.4% 0.152 311.1);
Tailwind
colors: {
  custom: {
    50: '#8c60a1',
    500: '#5a1d7a',
    950: '#000000',
  },
}
SCSS
$custom: #5a1d7a;
$custom-light: #8c60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1d7a",
  "rgb": {
    "r": 90,
    "g": 29,
    "b": 122
  },
  "hsl": {
    "h": 279.355,
    "s": 61.589,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3739,
    "c": 0.15214,
    "h": 311.1
  },
  "luminance": 0.04458
}

Semantic roles & 50–950 ramp

primary
#5A1D7A
secondary
#69AE45
accent
#E5437B
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #5A1D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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