#5A24A9#5A24A9

#5A24A9 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.2% C 0.194 H 295.0°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#5A24A9
RGBrgb(90, 36, 169)
HSLhsl(264, 65%, 40%)
HSVhsv(264, 79%, 66%)
CMYKcmyk(46.7%, 78.7%, 0%, 33.7%)
CIE-LABlab(30.16, 51.93, -61.37)
CIE-LCHlch(30.16, 80.39, 310.24°)
OKLaboklab(42.15% 0.082 -0.176)
OKLCHoklch(42.15% 0.194 295)
XYZxyz(12.0068, 6.2997, 38.1118)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A24A9 #73A924
analogous
#2430A9 #5A24A9 #9C24A9
triadic
#5A24A9 #A95A24 #24A95A
tetradic
#5A24A9 #A92430 #73A924 #24A99C
square
#5A24A9 #A92430 #73A924 #24A99C
split-complementary
#5A24A9 #A99C24 #30A924
monochromatic
#240F44 #3F1977 #5A24A9 #7636D4 #9968DF

Accessibility & contrast

On white

9.29
#5A24A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5A24A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A24A9
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A24A9#FFFFFF#000000##FFFFFF
##5A24A91.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#434966
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a24a9;
/* rgb */ color: rgb(90, 36, 169);
/* oklch */ color: oklch(42.2% 0.194 295.0);
Tailwind
colors: {
  custom: {
    50: '#9165c4',
    500: '#5a24a9',
    950: '#000000',
  },
}
SCSS
$custom: #5a24a9;
$custom-light: #9165c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a24a9",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 169
  },
  "hsl": {
    "h": 264.361,
    "s": 64.878,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42153,
    "c": 0.19415,
    "h": 295
  },
  "luminance": 0.063
}

Semantic roles & 50–950 ramp

primary
#5A24A9
secondary
#9DC564
accent
#E840A4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A24A9

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

Preview Lab → · Contrast checker → · Palette generator →

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