#5B24A6#5B24A6

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

Color values

HEX#5B24A6
RGBrgb(91, 36, 166)
HSLhsl(265, 64%, 40%)
HSVhsv(265, 78%, 65%)
CMYKcmyk(45.2%, 78.3%, 0%, 34.9%)
CIE-LABlab(30.01, 51.31, -59.80)
CIE-LCHlch(30.01, 78.80, 310.63°)
OKLaboklab(41.99% 0.0844 -0.1713)
OKLCHoklch(41.99% 0.191 296.2)
XYZxyz(11.8264, 6.2388, 36.6501)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B24A6 #6FA624
analogous
#242EA6 #5B24A6 #9C24A6
triadic
#5B24A6 #A65B24 #24A65B
tetradic
#5B24A6 #A6242E #6FA624 #24A69C
square
#5B24A6 #A6242E #6FA624 #24A69C
split-complementary
#5B24A6 #A69C24 #2EA624
monochromatic
#240E41 #3F1974 #5B24A6 #7734D3 #9966DE

Accessibility & contrast

On white

9.34
#5B24A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B24A6
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B24A6#FFFFFF#000000##FFFFFF
##5B24A61.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#464864
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5b24a6;
/* rgb */ color: rgb(91, 36, 166);
/* oklch */ color: oklch(42.0% 0.191 296.2);
Tailwind
colors: {
  custom: {
    50: '#9165c1',
    500: '#5b24a6',
    950: '#000000',
  },
}
SCSS
$custom: #5b24a6;
$custom-light: #9165c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b24a6",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 166
  },
  "hsl": {
    "h": 265.385,
    "s": 64.356,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41993,
    "c": 0.191,
    "h": 296.2
  },
  "luminance": 0.06239
}

Semantic roles & 50–950 ramp

primary
#5B24A6
secondary
#9AC462
accent
#E740A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5B24A6

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

Preview Lab → · Contrast checker → · Palette generator →

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