#5A1D99#5A1D99

#5A1D99 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.184 H 300.1°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#5A1D99
RGBrgb(90, 29, 153)
HSLhsl(270, 68%, 36%)
HSVhsv(270, 81%, 60%)
CMYKcmyk(41.2%, 81%, 0%, 40%)
CIE-LABlab(27.72, 50.75, -55.65)
CIE-LCHlch(27.72, 75.32, 312.36°)
OKLaboklab(40.01% 0.0923 -0.1592)
OKLCHoklch(40.01% 0.184 300.1)
XYZxyz(10.4041, 5.3522, 30.6157)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1D99 #5C991D
analogous
#1D1E99 #5A1D99 #981D99
triadic
#5A1D99 #995A1D #1D995A
tetradic
#5A1D99 #991D1E #5C991D #1D9998
square
#5A1D99 #991D1E #5C991D #1D9998
split-complementary
#5A1D99 #99981D #1E991D
monochromatic
#1D0932 #3C1366 #5A1D99 #7827CC #9752DE

Accessibility & contrast

On white

10.14
#5A1D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5A1D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1D99
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1D99#FFFFFF#000000##FFFFFF
##5A1D991.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#004097
Tritanopia (blue-blind)
#4B3F5B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a1d99;
/* rgb */ color: rgb(90, 29, 153);
/* oklch */ color: oklch(40.0% 0.184 300.1);
Tailwind
colors: {
  custom: {
    50: '#8f61b8',
    500: '#5a1d99',
    950: '#000000',
  },
}
SCSS
$custom: #5a1d99;
$custom-light: #8f61b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1d99",
  "rgb": {
    "r": 90,
    "g": 29,
    "b": 153
  },
  "hsl": {
    "h": 269.516,
    "s": 68.132,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40008,
    "c": 0.18399,
    "h": 300.1
  },
  "luminance": 0.05352
}

Semantic roles & 50–950 ramp

primary
#5A1D99
secondary
#8AC151
accent
#EB3D95
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5A1D99

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

Preview Lab → · Contrast checker → · Palette generator →

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