#5A1FA9#5A1FA9

#5A1FA9 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.7% C 0.199 H 295.5°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#5A1FA9
RGBrgb(90, 31, 169)
HSLhsl(266, 69%, 39%)
HSVhsv(266, 82%, 66%)
CMYKcmyk(46.7%, 81.7%, 0%, 33.7%)
CIE-LABlab(29.46, 53.96, -62.52)
CIE-LCHlch(29.46, 82.58, 310.80°)
OKLaboklab(41.67% 0.0857 -0.1793)
OKLCHoklch(41.67% 0.199 295.5)
XYZxyz(11.8659, 6.0179, 38.0648)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1FA9 #6EA91F
analogous
#1F29A9 #5A1FA9 #9F1FA9
triadic
#5A1FA9 #A95A1F #1FA95A
tetradic
#5A1FA9 #A91F29 #6EA91F #1FA99F
square
#5A1FA9 #A91F29 #6EA91F #1FA99F
split-complementary
#5A1FA9 #A99F1F #29A91F
monochromatic
#230C42 #3E1675 #5A1FA9 #762DD8 #9860E2

Accessibility & contrast

On white

9.53
#5A1FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5A1FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1FA9
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1FA9#FFFFFF#000000##FFFFFF
##5A1FA91.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#434765
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a1fa9;
/* rgb */ color: rgb(90, 31, 169);
/* oklch */ color: oklch(41.7% 0.199 295.5);
Tailwind
colors: {
  custom: {
    50: '#9163c4',
    500: '#5a1fa9',
    950: '#000000',
  },
}
SCSS
$custom: #5a1fa9;
$custom-light: #9163c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1fa9",
  "rgb": {
    "r": 90,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 265.652,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41668,
    "c": 0.19871,
    "h": 295.5
  },
  "luminance": 0.06018
}

Semantic roles & 50–950 ramp

primary
#5A1FA9
secondary
#9AC75D
accent
#EC3CA1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A1FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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