#5D24B1#5D24B1

#5D24B1 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.2% C 0.203 H 294.5°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#5D24B1
RGBrgb(93, 36, 177)
HSLhsl(264, 66%, 42%)
HSVhsv(264, 80%, 69%)
CMYKcmyk(47.5%, 79.7%, 0%, 30.6%)
CIE-LABlab(31.26, 54.42, -64.34)
CIE-LCHlch(31.26, 84.27, 310.23°)
OKLaboklab(43.23% 0.0841 -0.1846)
OKLCHoklch(43.23% 0.203 294.5)
XYZxyz(13.0787, 6.7628, 42.2027)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D24B1 #78B124
analogous
#2432B1 #5D24B1 #A424B1
triadic
#5D24B1 #B15D24 #24B15D
tetradic
#5D24B1 #B12432 #78B124 #24B1A4
square
#5D24B1 #B12432 #78B124 #24B1A4
split-complementary
#5D24B1 #B1A424 #32B124
monochromatic
#280F4B #421A7E #5D24B1 #7A3BD7 #9D6EE1

Accessibility & contrast

On white

8.93
#5D24B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5D24B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D24B1
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D24B1#FFFFFF#000000##FFFFFF
##5D24B11.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB5
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#444C6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5d24b1;
/* rgb */ color: rgb(93, 36, 177);
/* oklch */ color: oklch(43.2% 0.203 294.5);
Tailwind
colors: {
  custom: {
    50: '#9466c9',
    500: '#5d24b1',
    950: '#000000',
  },
}
SCSS
$custom: #5d24b1;
$custom-light: #9466c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5d24b1",
  "rgb": {
    "r": 93,
    "g": 36,
    "b": 177
  },
  "hsl": {
    "h": 264.255,
    "s": 66.197,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43229,
    "c": 0.20284,
    "h": 294.5
  },
  "luminance": 0.06763
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5D24B1

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

Preview Lab → · Contrast checker → · Palette generator →

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