#5C24B1#5C24B1

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

Color values

HEX#5C24B1
RGBrgb(92, 36, 177)
HSLhsl(264, 66%, 42%)
HSVhsv(264, 80%, 69%)
CMYKcmyk(48%, 79.7%, 0%, 30.6%)
CIE-LABlab(31.14, 54.28, -64.54)
CIE-LCHlch(31.14, 84.33, 310.07°)
OKLaboklab(43.12% 0.0826 -0.1852)
OKLCHoklch(43.12% 0.203 294)
XYZxyz(12.9781, 6.7110, 42.1980)
Luminance0.0671 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C24B1 #79B124
analogous
#2433B1 #5C24B1 #A324B1
triadic
#5C24B1 #B15C24 #24B15C
tetradic
#5C24B1 #B12433 #79B124 #24B1A3
square
#5C24B1 #B12433 #79B124 #24B1A3
split-complementary
#5C24B1 #B1A324 #33B124
monochromatic
#270F4B #421A7E #5C24B1 #793BD7 #9C6EE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C24B1#FFFFFF#000000##FFFFFF
##5C24B11.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)
#004BB5
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#424C6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5c24b1;
/* rgb */ color: rgb(92, 36, 177);
/* oklch */ color: oklch(43.1% 0.203 294.0);
Tailwind
colors: {
  custom: {
    50: '#9366c9',
    500: '#5c24b1',
    950: '#000000',
  },
}
SCSS
$custom: #5c24b1;
$custom-light: #9366c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c24b1",
  "rgb": {
    "r": 92,
    "g": 36,
    "b": 177
  },
  "hsl": {
    "h": 263.83,
    "s": 66.197,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43118,
    "c": 0.20279,
    "h": 294
  },
  "luminance": 0.06711
}

Semantic roles & 50–950 ramp

primary
#5C24B1
secondary
#A2C869
accent
#E93FA5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5C24B1

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

Preview Lab → · Contrast checker → · Palette generator →

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