#5B24A0#5B24A0

#5B24A0 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.5% C 0.185 H 297.8°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5B24A0
RGBrgb(91, 36, 160)
HSLhsl(267, 63%, 38%)
HSVhsv(267, 78%, 63%)
CMYKcmyk(43.1%, 77.5%, 0%, 37.3%)
CIE-LABlab(29.47, 49.77, -57.04)
CIE-LCHlch(29.47, 75.71, 311.11°)
OKLaboklab(41.46% 0.0861 -0.1632)
OKLCHoklch(41.46% 0.185 297.8)
XYZxyz(11.2888, 6.0238, 33.8188)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B24A0 #69A024
analogous
#242BA0 #5B24A0 #9924A0
triadic
#5B24A0 #A05B24 #24A05B
tetradic
#5B24A0 #A0242B #69A024 #24A099
square
#5B24A0 #A0242B #69A024 #24A099
split-complementary
#5B24A0 #A09924 #2BA024
monochromatic
#220E3C #3F196E #5B24A0 #7831D1 #9863DC

Accessibility & contrast

On white

9.52
#5B24A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5B24A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B24A0
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B24A0#FFFFFF#000000##FFFFFF
##5B24A01.009.522.209.52
#FFFFFF9.521.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#494561
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b24a0;
/* rgb */ color: rgb(91, 36, 160);
/* oklch */ color: oklch(41.5% 0.185 297.8);
Tailwind
colors: {
  custom: {
    50: '#9065bd',
    500: '#5b24a0',
    950: '#000000',
  },
}
SCSS
$custom: #5b24a0;
$custom-light: #9065bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b24a0",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 160
  },
  "hsl": {
    "h": 266.613,
    "s": 63.265,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41455,
    "c": 0.18456,
    "h": 297.8
  },
  "luminance": 0.06024
}

Semantic roles & 50–950 ramp

primary
#5B24A0
secondary
#95C15F
accent
#E6419D
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5B24A0

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

Preview Lab → · Contrast checker → · Palette generator →

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