#5B24B2#5B24B2

#5B24B2 is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.1% C 0.204 H 293.3°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5B24B2
RGBrgb(91, 36, 178)
HSLhsl(263, 66%, 42%)
HSVhsv(263, 80%, 70%)
CMYKcmyk(48.9%, 79.8%, 0%, 30.2%)
CIE-LABlab(31.11, 54.40, -65.19)
CIE-LCHlch(31.11, 84.90, 309.85°)
OKLaboklab(43.1% 0.0808 -0.1871)
OKLCHoklch(43.1% 0.204 293.3)
XYZxyz(12.9789, 6.6998, 42.7202)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B24B2 #7BB224
analogous
#2434B2 #5B24B2 #A224B2
triadic
#5B24B2 #B25B24 #24B25B
tetradic
#5B24B2 #B22434 #7BB224 #24B2A2
square
#5B24B2 #B22434 #7BB224 #24B2A2
split-complementary
#5B24B2 #B2A224 #34B224
monochromatic
#270F4C #411A7F #5B24B2 #783CD8 #9B6FE2

Accessibility & contrast

On white

8.97
#5B24B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5B24B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B24B2
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B24B2#FFFFFF#000000##FFFFFF
##5B24B21.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#0047AF
Tritanopia (blue-blind)
#3F4D6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5b24b2;
/* rgb */ color: rgb(91, 36, 178);
/* oklch */ color: oklch(43.1% 0.204 293.3);
Tailwind
colors: {
  custom: {
    50: '#9366ca',
    500: '#5b24b2',
    950: '#000000',
  },
}
SCSS
$custom: #5b24b2;
$custom-light: #9366ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5b24b2",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 178
  },
  "hsl": {
    "h": 263.239,
    "s": 66.355,
    "l": 41.961
  },
  "oklch": {
    "l": 0.43101,
    "c": 0.2038,
    "h": 293.3
  },
  "luminance": 0.067
}

Semantic roles & 50–950 ramp

primary
#5B24B2
secondary
#A4C869
accent
#E93FA7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5B24B2

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

Preview Lab → · Contrast checker → · Palette generator →

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