#5D24A6#5D24A6

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

Color values

HEX#5D24A6
RGBrgb(93, 36, 166)
HSLhsl(266, 64%, 40%)
HSVhsv(266, 78%, 65%)
CMYKcmyk(44%, 78.3%, 0%, 34.9%)
CIE-LABlab(30.26, 51.62, -59.38)
CIE-LCHlch(30.26, 78.68, 311.00°)
OKLaboklab(42.23% 0.0875 -0.17)
OKLCHoklch(42.23% 0.191 297.2)
XYZxyz(12.0262, 6.3418, 36.6595)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D24A6 #6DA624
analogous
#242CA6 #5D24A6 #9E24A6
triadic
#5D24A6 #A65D24 #24A65D
tetradic
#5D24A6 #A6242C #6DA624 #24A69E
square
#5D24A6 #A6242C #6DA624 #24A69E
split-complementary
#5D24A6 #A69E24 #2CA624
monochromatic
#250E41 #411974 #5D24A6 #7A34D3 #9B66DE

Accessibility & contrast

On white

9.26
#5D24A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D24A6
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D24A6#FFFFFF#000000##FFFFFF
##5D24A61.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AA
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#4A4864
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5d24a6;
/* rgb */ color: rgb(93, 36, 166);
/* oklch */ color: oklch(42.2% 0.191 297.2);
Tailwind
colors: {
  custom: {
    50: '#9266c1',
    500: '#5d24a6',
    950: '#000000',
  },
}
SCSS
$custom: #5d24a6;
$custom-light: #9266c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5d24a6",
  "rgb": {
    "r": 93,
    "g": 36,
    "b": 166
  },
  "hsl": {
    "h": 266.308,
    "s": 64.356,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42225,
    "c": 0.1912,
    "h": 297.2
  },
  "luminance": 0.06342
}

Semantic roles & 50–950 ramp

primary
#5D24A6
secondary
#99C462
accent
#E7409E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5D24A6

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

Preview Lab → · Contrast checker → · Palette generator →

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