#5E24A6#5E24A6

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

Color values

HEX#5E24A6
RGBrgb(94, 36, 166)
HSLhsl(267, 64%, 40%)
HSVhsv(267, 78%, 65%)
CMYKcmyk(43.4%, 78.3%, 0%, 34.9%)
CIE-LABlab(30.39, 51.78, -59.17)
CIE-LCHlch(30.39, 78.62, 311.19°)
OKLaboklab(42.34% 0.089 -0.1694)
OKLCHoklch(42.34% 0.191 297.7)
XYZxyz(12.1281, 6.3944, 36.6643)
Luminance0.0640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E24A6 #6CA624
analogous
#242BA6 #5E24A6 #9F24A6
triadic
#5E24A6 #A65E24 #24A65E
tetradic
#5E24A6 #A6242B #6CA624 #24A69F
square
#5E24A6 #A6242B #6CA624 #24A69F
split-complementary
#5E24A6 #A69F24 #2BA624
monochromatic
#250E41 #421974 #5E24A6 #7B34D3 #9C66DE

Accessibility & contrast

On white

9.21
#5E24A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E24A6
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E24A6#FFFFFF#000000##FFFFFF
##5E24A61.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e24a6;
/* rgb */ color: rgb(94, 36, 166);
/* oklch */ color: oklch(42.3% 0.191 297.7);
Tailwind
colors: {
  custom: {
    50: '#9366c1',
    500: '#5e24a6',
    950: '#000000',
  },
}
SCSS
$custom: #5e24a6;
$custom-light: #9366c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e24a6",
  "rgb": {
    "r": 94,
    "g": 36,
    "b": 166
  },
  "hsl": {
    "h": 266.769,
    "s": 64.356,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42342,
    "c": 0.19132,
    "h": 297.7
  },
  "luminance": 0.06395
}

Semantic roles & 50–950 ramp

primary
#5E24A6
secondary
#98C462
accent
#E7409D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E24A6

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

Preview Lab → · Contrast checker → · Palette generator →

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