#5C24A8#5C24A8

#5C24A8 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.193 H 296.2°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#5C24A8
RGBrgb(92, 36, 168)
HSLhsl(265, 65%, 40%)
HSVhsv(265, 79%, 66%)
CMYKcmyk(45.2%, 78.6%, 0%, 34.1%)
CIE-LABlab(30.31, 51.98, -60.50)
CIE-LCHlch(30.31, 79.76, 310.67°)
OKLaboklab(42.29% 0.0854 -0.1734)
OKLCHoklch(42.29% 0.193 296.2)
XYZxyz(12.1105, 6.3639, 37.6285)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C24A8 #70A824
analogous
#242EA8 #5C24A8 #9E24A8
triadic
#5C24A8 #A85C24 #24A85C
tetradic
#5C24A8 #A8242E #70A824 #24A89E
square
#5C24A8 #A8242E #70A824 #24A89E
split-complementary
#5C24A8 #A89E24 #2EA824
monochromatic
#250E43 #401976 #5C24A8 #7935D4 #9A68DF

Accessibility & contrast

On white

9.24
#5C24A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5C24A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C24A8
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C24A8#FFFFFF#000000##FFFFFF
##5C24A81.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c24a8;
/* rgb */ color: rgb(92, 36, 168);
/* oklch */ color: oklch(42.3% 0.193 296.2);
Tailwind
colors: {
  custom: {
    50: '#9266c3',
    500: '#5c24a8',
    950: '#000000',
  },
}
SCSS
$custom: #5c24a8;
$custom-light: #9266c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c24a8",
  "rgb": {
    "r": 92,
    "g": 36,
    "b": 168
  },
  "hsl": {
    "h": 265.455,
    "s": 64.706,
    "l": 40
  },
  "oklch": {
    "l": 0.42289,
    "c": 0.19323,
    "h": 296.2
  },
  "luminance": 0.06364
}

Semantic roles & 50–950 ramp

primary
#5C24A8
secondary
#9BC463
accent
#E840A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5C24A8

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

Preview Lab → · Contrast checker → · Palette generator →

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