#5D24A8#5D24A8

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

Color values

HEX#5D24A8
RGBrgb(93, 36, 168)
HSLhsl(266, 65%, 40%)
HSVhsv(266, 79%, 66%)
CMYKcmyk(44.6%, 78.6%, 0%, 34.1%)
CIE-LABlab(30.44, 52.13, -60.29)
CIE-LCHlch(30.44, 79.70, 310.85°)
OKLaboklab(42.41% 0.0869 -0.1727)
OKLCHoklch(42.41% 0.193 296.7)
XYZxyz(12.2111, 6.4158, 37.6332)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D24A8 #6FA824
analogous
#242DA8 #5D24A8 #9F24A8
triadic
#5D24A8 #A85D24 #24A85D
tetradic
#5D24A8 #A8242D #6FA824 #24A89F
square
#5D24A8 #A8242D #6FA824 #24A89F
split-complementary
#5D24A8 #A89F24 #2DA824
monochromatic
#250E43 #411976 #5D24A8 #7A35D4 #9B68DF

Accessibility & contrast

On white

9.20
#5D24A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5D24A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D24A8
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D24A8#FFFFFF#000000##FFFFFF
##5D24A81.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d24a8;
/* rgb */ color: rgb(93, 36, 168);
/* oklch */ color: oklch(42.4% 0.193 296.7);
Tailwind
colors: {
  custom: {
    50: '#9266c3',
    500: '#5d24a8',
    950: '#000000',
  },
}
SCSS
$custom: #5d24a8;
$custom-light: #9266c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d24a8",
  "rgb": {
    "r": 93,
    "g": 36,
    "b": 168
  },
  "hsl": {
    "h": 265.909,
    "s": 64.706,
    "l": 40
  },
  "oklch": {
    "l": 0.42405,
    "c": 0.19333,
    "h": 296.7
  },
  "luminance": 0.06416
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D24A8

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

Preview Lab → · Contrast checker → · Palette generator →

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