#5A24A7#5A24A7

#5A24A7 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.192 H 295.5°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#5A24A7
RGBrgb(90, 36, 167)
HSLhsl(265, 65%, 40%)
HSVhsv(265, 78%, 65%)
CMYKcmyk(46.1%, 78.4%, 0%, 34.5%)
CIE-LABlab(29.97, 51.41, -60.46)
CIE-LCHlch(29.97, 79.37, 310.38°)
OKLaboklab(41.97% 0.0826 -0.1733)
OKLCHoklch(41.97% 0.192 295.5)
XYZxyz(11.8205, 6.2251, 37.1305)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A24A7 #71A724
analogous
#242FA7 #5A24A7 #9C24A7
triadic
#5A24A7 #A75A24 #24A75A
tetradic
#5A24A7 #A7242F #71A724 #24A79C
square
#5A24A7 #A7242F #71A724 #24A79C
split-complementary
#5A24A7 #A79C24 #2FA724
monochromatic
#240E42 #3F1975 #5A24A7 #7635D3 #9867DE

Accessibility & contrast

On white

9.35
#5A24A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A24A7
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A24A7#FFFFFF#000000##FFFFFF
##5A24A71.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#444865
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a24a7;
/* rgb */ color: rgb(90, 36, 167);
/* oklch */ color: oklch(42.0% 0.192 295.5);
Tailwind
colors: {
  custom: {
    50: '#9065c2',
    500: '#5a24a7',
    950: '#000000',
  },
}
SCSS
$custom: #5a24a7;
$custom-light: #9065c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a24a7",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 167
  },
  "hsl": {
    "h": 264.733,
    "s": 64.532,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4197,
    "c": 0.192,
    "h": 295.5
  },
  "luminance": 0.06225
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A24A7

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

Preview Lab → · Contrast checker → · Palette generator →

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