#5A24A6#5A24A6

#5A24A6 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.191 H 295.7°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#5A24A6
RGBrgb(90, 36, 166)
HSLhsl(265, 64%, 40%)
HSVhsv(265, 78%, 65%)
CMYKcmyk(45.8%, 78.3%, 0%, 34.9%)
CIE-LABlab(29.88, 51.16, -60.01)
CIE-LCHlch(29.88, 78.86, 310.45°)
OKLaboklab(41.88% 0.0829 -0.172)
OKLCHoklch(41.88% 0.191 295.7)
XYZxyz(11.7284, 6.1883, 36.6455)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A24A6 #70A624
analogous
#242FA6 #5A24A6 #9B24A6
triadic
#5A24A6 #A65A24 #24A65A
tetradic
#5A24A6 #A6242F #70A624 #24A69B
square
#5A24A6 #A6242F #70A624 #24A69B
split-complementary
#5A24A6 #A69B24 #2FA624
monochromatic
#230E41 #3F1974 #5A24A6 #7634D3 #9866DE

Accessibility & contrast

On white

9.38
#5A24A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5A24A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A24A6
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A24A6#FFFFFF#000000##FFFFFF
##5A24A61.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#454864
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a24a6;
/* rgb */ color: rgb(90, 36, 166);
/* oklch */ color: oklch(41.9% 0.191 295.7);
Tailwind
colors: {
  custom: {
    50: '#9065c1',
    500: '#5a24a6',
    950: '#000000',
  },
}
SCSS
$custom: #5a24a6;
$custom-light: #9065c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a24a6",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 166
  },
  "hsl": {
    "h": 264.923,
    "s": 64.356,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41878,
    "c": 0.19092,
    "h": 295.7
  },
  "luminance": 0.06189
}

Semantic roles & 50–950 ramp

primary
#5A24A6
secondary
#9BC462
accent
#E740A2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5A24A6

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

Preview Lab → · Contrast checker → · Palette generator →

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