#5C24A6#5C24A6

#5C24A6 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.1% C 0.191 H 296.7°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#5C24A6
RGBrgb(92, 36, 166)
HSLhsl(266, 64%, 40%)
HSVhsv(266, 78%, 65%)
CMYKcmyk(44.6%, 78.3%, 0%, 34.9%)
CIE-LABlab(30.13, 51.47, -59.59)
CIE-LCHlch(30.13, 78.74, 310.82°)
OKLaboklab(42.11% 0.0859 -0.1707)
OKLCHoklch(42.11% 0.191 296.7)
XYZxyz(11.9256, 6.2900, 36.6548)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C24A6 #6EA624
analogous
#242DA6 #5C24A6 #9D24A6
triadic
#5C24A6 #A65C24 #24A65C
tetradic
#5C24A6 #A6242D #6EA624 #24A69D
square
#5C24A6 #A6242D #6EA624 #24A69D
split-complementary
#5C24A6 #A69D24 #2DA624
monochromatic
#240E41 #401974 #5C24A6 #7934D3 #9A66DE

Accessibility & contrast

On white

9.30
#5C24A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5C24A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C24A6
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C24A6#FFFFFF#000000##FFFFFF
##5C24A61.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#484864
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c24a6;
/* rgb */ color: rgb(92, 36, 166);
/* oklch */ color: oklch(42.1% 0.191 296.7);
Tailwind
colors: {
  custom: {
    50: '#9266c1',
    500: '#5c24a6',
    950: '#000000',
  },
}
SCSS
$custom: #5c24a6;
$custom-light: #9266c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c24a6",
  "rgb": {
    "r": 92,
    "g": 36,
    "b": 166
  },
  "hsl": {
    "h": 265.846,
    "s": 64.356,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42109,
    "c": 0.1911,
    "h": 296.7
  },
  "luminance": 0.0629
}

Semantic roles & 50–950 ramp

primary
#5C24A6
secondary
#9AC462
accent
#E7409F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C24A6

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

Preview Lab → · Contrast checker → · Palette generator →

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