#5B24A8#5B24A8

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

Color values

HEX#5B24A8
RGBrgb(91, 36, 168)
HSLhsl(265, 65%, 40%)
HSVhsv(265, 79%, 66%)
CMYKcmyk(45.8%, 78.6%, 0%, 34.1%)
CIE-LABlab(30.19, 51.82, -60.71)
CIE-LCHlch(30.19, 79.82, 310.48°)
OKLaboklab(42.18% 0.0838 -0.174)
OKLCHoklch(42.18% 0.193 295.7)
XYZxyz(12.0112, 6.3128, 37.6238)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B24A8 #71A824
analogous
#242FA8 #5B24A8 #9D24A8
triadic
#5B24A8 #A85B24 #24A85B
tetradic
#5B24A8 #A8242F #71A824 #24A89D
square
#5B24A8 #A8242F #71A824 #24A89D
split-complementary
#5B24A8 #A89D24 #2FA824
monochromatic
#240E43 #401976 #5B24A8 #7735D4 #9968DF

Accessibility & contrast

On white

9.28
#5B24A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5B24A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B24A8
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B24A8#FFFFFF#000000##FFFFFF
##5B24A81.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b24a8;
/* rgb */ color: rgb(91, 36, 168);
/* oklch */ color: oklch(42.2% 0.193 295.7);
Tailwind
colors: {
  custom: {
    50: '#9166c3',
    500: '#5b24a8',
    950: '#000000',
  },
}
SCSS
$custom: #5b24a8;
$custom-light: #9166c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b24a8",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 168
  },
  "hsl": {
    "h": 265,
    "s": 64.706,
    "l": 40
  },
  "oklch": {
    "l": 0.42175,
    "c": 0.19315,
    "h": 295.7
  },
  "luminance": 0.06313
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B24A8

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

Preview Lab → · Contrast checker → · Palette generator →

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