#5A1C99#5A1C99

#5A1C99 is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.9% C 0.185 H 300.2°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#5A1C99
RGBrgb(90, 28, 153)
HSLhsl(270, 69%, 35%)
HSVhsv(270, 82%, 60%)
CMYKcmyk(41.2%, 81.7%, 0%, 40%)
CIE-LABlab(27.58, 51.13, -55.87)
CIE-LCHlch(27.58, 75.74, 312.47°)
OKLaboklab(39.92% 0.0931 -0.1598)
OKLCHoklch(39.92% 0.185 300.2)
XYZxyz(10.3800, 5.3040, 30.6077)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1C99 #5B991C
analogous
#1C1C99 #5A1C99 #981C99
triadic
#5A1C99 #995A1C #1C995A
tetradic
#5A1C99 #991C1C #5B991C #1C9998
square
#5A1C99 #991C1C #5B991C #1C9998
split-complementary
#5A1C99 #99981C #1C991C
monochromatic
#1D0932 #3C1365 #5A1C99 #7825CD #9750DF

Accessibility & contrast

On white

10.19
#5A1C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#5A1C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1C99
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1C99#FFFFFF#000000##FFFFFF
##5A1C991.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.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: #5a1c99;
/* rgb */ color: rgb(90, 28, 153);
/* oklch */ color: oklch(39.9% 0.185 300.2);
Tailwind
colors: {
  custom: {
    50: '#8f61b8',
    500: '#5a1c99',
    950: '#000000',
  },
}
SCSS
$custom: #5a1c99;
$custom-light: #8f61b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1c99",
  "rgb": {
    "r": 90,
    "g": 28,
    "b": 153
  },
  "hsl": {
    "h": 269.76,
    "s": 69.061,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39917,
    "c": 0.18492,
    "h": 300.2
  },
  "luminance": 0.05304
}

Semantic roles & 50–950 ramp

primary
#5A1C99
secondary
#89C24F
accent
#EC3C95
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5A1C99

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

Preview Lab → · Contrast checker → · Palette generator →

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