#5A1D79#5A1D79

#5A1D79 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.151 H 311.5°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#5A1D79
RGBrgb(90, 29, 121)
HSLhsl(280, 61%, 29%)
HSVhsv(280, 76%, 47%)
CMYKcmyk(25.6%, 76%, 0%, 52.5%)
CIE-LABlab(25.05, 43.13, -40.02)
CIE-LCHlch(25.05, 58.84, 317.14°)
OKLaboklab(37.31% 0.1001 -0.1132)
OKLCHoklch(37.31% 0.151 311.5)
XYZxyz(8.1064, 4.4331, 18.5141)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1D79 #3C791D
analogous
#2C1D79 #5A1D79 #791D6A
triadic
#5A1D79 #795A1D #1D795A
tetradic
#5A1D79 #792C1D #3C791D #1D6A79
square
#5A1D79 #792C1D #3C791D #1D6A79
split-complementary
#5A1D79 #6A791D #1D792C
monochromatic
#120619 #351148 #5A1D79 #7F29AA #A03FD1

Accessibility & contrast

On white

11.13
#5A1D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1D79
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1D79#FFFFFF#000000##FFFFFF
##5A1D791.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#0E3D77
Tritanopia (blue-blind)
#563249
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a1d79;
/* rgb */ color: rgb(90, 29, 121);
/* oklch */ color: oklch(37.3% 0.151 311.5);
Tailwind
colors: {
  custom: {
    50: '#8c60a0',
    500: '#5a1d79',
    950: '#000000',
  },
}
SCSS
$custom: #5a1d79;
$custom-light: #8c60a0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1d79",
  "rgb": {
    "r": 90,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 279.783,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37312,
    "c": 0.15111,
    "h": 311.5
  },
  "luminance": 0.04433
}

Semantic roles & 50–950 ramp

primary
#5A1D79
secondary
#68AD45
accent
#E4437A
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #5A1D79

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

Preview Lab → · Contrast checker → · Palette generator →

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