#5B24B1#5B24B1

#5B24B1 is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.0% C 0.203 H 293.6°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#5B24B1
RGBrgb(91, 36, 177)
HSLhsl(263, 66%, 42%)
HSVhsv(263, 80%, 69%)
CMYKcmyk(48.6%, 79.7%, 0%, 30.6%)
CIE-LABlab(31.02, 54.14, -64.74)
CIE-LCHlch(31.02, 84.40, 309.90°)
OKLaboklab(43.01% 0.0811 -0.1858)
OKLCHoklch(43.01% 0.203 293.6)
XYZxyz(12.8789, 6.6598, 42.1933)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B24B1 #7AB124
analogous
#2434B1 #5B24B1 #A224B1
triadic
#5B24B1 #B15B24 #24B15B
tetradic
#5B24B1 #B12434 #7AB124 #24B1A2
square
#5B24B1 #B12434 #7AB124 #24B1A2
split-complementary
#5B24B1 #B1A224 #34B124
monochromatic
#270F4B #411A7E #5B24B1 #783BD7 #9B6EE1

Accessibility & contrast

On white

9.01
#5B24B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5B24B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B24B1
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B24B1#FFFFFF#000000##FFFFFF
##5B24B11.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0046AE
Tritanopia (blue-blind)
#404C6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b24b1;
/* rgb */ color: rgb(91, 36, 177);
/* oklch */ color: oklch(43.0% 0.203 293.6);
Tailwind
colors: {
  custom: {
    50: '#9266c9',
    500: '#5b24b1',
    950: '#000000',
  },
}
SCSS
$custom: #5b24b1;
$custom-light: #9266c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b24b1",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 177
  },
  "hsl": {
    "h": 263.404,
    "s": 66.197,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43007,
    "c": 0.20275,
    "h": 293.6
  },
  "luminance": 0.0666
}

Semantic roles & 50–950 ramp

primary
#5B24B1
secondary
#A3C869
accent
#E93FA7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B24B1

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

Preview Lab → · Contrast checker → · Palette generator →

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