#5E24A5#5E24A5

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

Color values

HEX#5E24A5
RGBrgb(94, 36, 165)
HSLhsl(267, 64%, 39%)
HSVhsv(267, 78%, 65%)
CMYKcmyk(43%, 78.2%, 0%, 35.3%)
CIE-LABlab(30.30, 51.53, -58.71)
CIE-LCHlch(30.30, 78.11, 311.27°)
OKLaboklab(42.25% 0.0893 -0.168)
OKLCHoklch(42.25% 0.19 298)
XYZxyz(12.0367, 6.3578, 36.1830)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E24A5 #6BA524
analogous
#242AA5 #5E24A5 #9F24A5
triadic
#5E24A5 #A55E24 #24A55E
tetradic
#5E24A5 #A5242A #6BA524 #24A59F
square
#5E24A5 #A5242A #6BA524 #24A59F
split-complementary
#5E24A5 #A59F24 #2AA524
monochromatic
#250E41 #411973 #5E24A5 #7B34D3 #9C66DE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E24A5#FFFFFF#000000##FFFFFF
##5E24A51.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)
#0048A9
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#4C4764
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e24a5;
/* rgb */ color: rgb(94, 36, 165);
/* oklch */ color: oklch(42.3% 0.190 298.0);
Tailwind
colors: {
  custom: {
    50: '#9366c1',
    500: '#5e24a5',
    950: '#000000',
  },
}
SCSS
$custom: #5e24a5;
$custom-light: #9366c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e24a5",
  "rgb": {
    "r": 94,
    "g": 36,
    "b": 165
  },
  "hsl": {
    "h": 266.977,
    "s": 64.179,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42253,
    "c": 0.19026,
    "h": 298
  },
  "luminance": 0.06358
}

Semantic roles & 50–950 ramp

primary
#5E24A5
secondary
#97C362
accent
#E7419C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E24A5

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

Preview Lab → · Contrast checker → · Palette generator →

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