#5B24A9#5B24A9

#5B24A9 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.194 H 295.5°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#5B24A9
RGBrgb(91, 36, 169)
HSLhsl(265, 65%, 40%)
HSVhsv(265, 79%, 66%)
CMYKcmyk(46.2%, 78.7%, 0%, 33.7%)
CIE-LABlab(30.28, 52.08, -61.16)
CIE-LCHlch(30.28, 80.33, 310.41°)
OKLaboklab(42.27% 0.0835 -0.1753)
OKLCHoklch(42.27% 0.194 295.5)
XYZxyz(12.1048, 6.3502, 38.1164)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B24A9 #72A924
analogous
#2430A9 #5B24A9 #9D24A9
triadic
#5B24A9 #A95B24 #24A95B
tetradic
#5B24A9 #A92430 #72A924 #24A99D
square
#5B24A9 #A92430 #72A924 #24A99D
split-complementary
#5B24A9 #A99D24 #30A924
monochromatic
#250F44 #401977 #5B24A9 #7736D4 #9968DF

Accessibility & contrast

On white

9.25
#5B24A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5B24A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B24A9
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B24A9#FFFFFF#000000##FFFFFF
##5B24A91.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b24a9;
/* rgb */ color: rgb(91, 36, 169);
/* oklch */ color: oklch(42.3% 0.194 295.5);
Tailwind
colors: {
  custom: {
    50: '#9166c4',
    500: '#5b24a9',
    950: '#000000',
  },
}
SCSS
$custom: #5b24a9;
$custom-light: #9166c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b24a9",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 169
  },
  "hsl": {
    "h": 264.812,
    "s": 64.878,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42266,
    "c": 0.19422,
    "h": 295.5
  },
  "luminance": 0.0635
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B24A9

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

Preview Lab → · Contrast checker → · Palette generator →

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