#5A1A9F#5A1A9F

#5A1A9F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.3% C 0.193 H 298.7°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#5A1A9F
RGBrgb(90, 26, 159)
HSLhsl(269, 72%, 36%)
HSVhsv(269, 84%, 62%)
CMYKcmyk(43.4%, 83.6%, 0%, 37.6%)
CIE-LABlab(27.89, 53.32, -59.04)
CIE-LCHlch(27.89, 79.55, 312.09°)
OKLaboklab(40.3% 0.0925 -0.169)
OKLCHoklch(40.3% 0.193 298.7)
XYZxyz(10.8422, 5.4155, 33.2682)
Luminance0.0542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1A9F #5F9F1A
analogous
#1A1D9F #5A1A9F #9D1A9F
triadic
#5A1A9F #9F5A1A #1A9F5A
tetradic
#5A1A9F #9F1A1D #5F9F1A #1A9F9D
square
#5A1A9F #9F1A1D #5F9F1A #1A9F9D
split-complementary
#5A1A9F #9F9D1A #1D9F1A
monochromatic
#1E0936 #3C116A #5A1A9F #7823D4 #9751E3

Accessibility & contrast

On white

10.08
#5A1A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5A1A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1A9F
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1A9F#FFFFFF#000000##FFFFFF
##5A1A9F1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A3
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#48415E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a1a9f;
/* rgb */ color: rgb(90, 26, 159);
/* oklch */ color: oklch(40.3% 0.193 298.7);
Tailwind
colors: {
  custom: {
    50: '#9060bc',
    500: '#5a1a9f',
    950: '#000000',
  },
}
SCSS
$custom: #5a1a9f;
$custom-light: #9060bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1a9f",
  "rgb": {
    "r": 90,
    "g": 26,
    "b": 159
  },
  "hsl": {
    "h": 268.872,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40296,
    "c": 0.19272,
    "h": 298.7
  },
  "luminance": 0.05416
}

Semantic roles & 50–950 ramp

primary
#5A1A9F
secondary
#8DC550
accent
#EF3997
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #5A1A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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