#5A1CA9#5A1CA9

#5A1CA9 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.4% C 0.201 H 295.8°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#5A1CA9
RGBrgb(90, 28, 169)
HSLhsl(266, 72%, 39%)
HSVhsv(266, 83%, 66%)
CMYKcmyk(46.7%, 83.4%, 0%, 33.7%)
CIE-LABlab(29.08, 55.07, -63.14)
CIE-LCHlch(29.08, 83.78, 311.09°)
OKLaboklab(41.41% 0.0877 -0.1811)
OKLCHoklch(41.41% 0.201 295.8)
XYZxyz(11.7912, 5.8684, 38.0399)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1CA9 #6BA91C
analogous
#1C24A9 #5A1CA9 #A01CA9
triadic
#5A1CA9 #A95A1C #1CA95A
tetradic
#5A1CA9 #A91C24 #6BA91C #1CA9A0
square
#5A1CA9 #A91C24 #6BA91C #1CA9A0
split-complementary
#5A1CA9 #A9A01C #24A91C
monochromatic
#220B40 #3E1374 #5A1CA9 #7627DB #975BE4

Accessibility & contrast

On white

9.66
#5A1CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5A1CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1CA9
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1CA9#FFFFFF#000000##FFFFFF
##5A1CA91.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AD
Deuteranopia (green-blind)
#0042A6
Tritanopia (blue-blind)
#434665
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a1ca9;
/* rgb */ color: rgb(90, 28, 169);
/* oklch */ color: oklch(41.4% 0.201 295.8);
Tailwind
colors: {
  custom: {
    50: '#9162c4',
    500: '#5a1ca9',
    950: '#000000',
  },
}
SCSS
$custom: #5a1ca9;
$custom-light: #9162c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1ca9",
  "rgb": {
    "r": 90,
    "g": 28,
    "b": 169
  },
  "hsl": {
    "h": 266.383,
    "s": 71.574,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41406,
    "c": 0.2012,
    "h": 295.8
  },
  "luminance": 0.05869
}

Semantic roles & 50–950 ramp

primary
#5A1CA9
secondary
#97C859
accent
#EE399F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A1CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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