#5A24A8#5A24A8

#5A24A8 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.193 H 295.2°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#5A24A8
RGBrgb(90, 36, 168)
HSLhsl(265, 65%, 40%)
HSVhsv(265, 79%, 66%)
CMYKcmyk(46.4%, 78.6%, 0%, 34.1%)
CIE-LABlab(30.06, 51.67, -60.92)
CIE-LCHlch(30.06, 79.88, 310.31°)
OKLaboklab(42.06% 0.0823 -0.1746)
OKLCHoklch(42.06% 0.193 295.2)
XYZxyz(11.9133, 6.2622, 37.6192)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A24A8 #72A824
analogous
#2430A8 #5A24A8 #9C24A8
triadic
#5A24A8 #A85A24 #24A85A
tetradic
#5A24A8 #A82430 #72A824 #24A89C
square
#5A24A8 #A82430 #72A824 #24A89C
split-complementary
#5A24A8 #A89C24 #30A824
monochromatic
#240E43 #3F1976 #5A24A8 #7635D4 #9868DF

Accessibility & contrast

On white

9.32
#5A24A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5A24A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A24A8
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A24A8#FFFFFF#000000##FFFFFF
##5A24A81.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#444966
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a24a8;
/* rgb */ color: rgb(90, 36, 168);
/* oklch */ color: oklch(42.1% 0.193 295.2);
Tailwind
colors: {
  custom: {
    50: '#9165c3',
    500: '#5a24a8',
    950: '#000000',
  },
}
SCSS
$custom: #5a24a8;
$custom-light: #9165c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a24a8",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 168
  },
  "hsl": {
    "h": 264.545,
    "s": 64.706,
    "l": 40
  },
  "oklch": {
    "l": 0.42061,
    "c": 0.19307,
    "h": 295.2
  },
  "luminance": 0.06263
}

Semantic roles & 50–950 ramp

primary
#5A24A8
secondary
#9DC463
accent
#E840A3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A24A8

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

Preview Lab → · Contrast checker → · Palette generator →

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