#5E24A8#5E24A8

#5E24A8 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.5% C 0.193 H 297.2°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#5E24A8
RGBrgb(94, 36, 168)
HSLhsl(266, 65%, 40%)
HSVhsv(266, 79%, 66%)
CMYKcmyk(44%, 78.6%, 0%, 34.1%)
CIE-LABlab(30.56, 52.29, -60.08)
CIE-LCHlch(30.56, 79.65, 311.03°)
OKLaboklab(42.52% 0.0884 -0.172)
OKLCHoklch(42.52% 0.193 297.2)
XYZxyz(12.3130, 6.4683, 37.6380)
Luminance0.0647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E24A8 #6EA824
analogous
#242CA8 #5E24A8 #A024A8
triadic
#5E24A8 #A85E24 #24A85E
tetradic
#5E24A8 #A8242C #6EA824 #24A8A0
square
#5E24A8 #A8242C #6EA824 #24A8A0
split-complementary
#5E24A8 #A8A024 #2CA824
monochromatic
#260E43 #421976 #5E24A8 #7B35D4 #9C68DF

Accessibility & contrast

On white

9.16
#5E24A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5E24A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E24A8
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E24A8#FFFFFF#000000##FFFFFF
##5E24A81.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e24a8;
/* rgb */ color: rgb(94, 36, 168);
/* oklch */ color: oklch(42.5% 0.193 297.2);
Tailwind
colors: {
  custom: {
    50: '#9366c3',
    500: '#5e24a8',
    950: '#000000',
  },
}
SCSS
$custom: #5e24a8;
$custom-light: #9366c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e24a8",
  "rgb": {
    "r": 94,
    "g": 36,
    "b": 168
  },
  "hsl": {
    "h": 266.364,
    "s": 64.706,
    "l": 40
  },
  "oklch": {
    "l": 0.42521,
    "c": 0.19343,
    "h": 297.2
  },
  "luminance": 0.06469
}

Semantic roles & 50–950 ramp

primary
#5E24A8
secondary
#9AC463
accent
#E8409E
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E24A8

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

Preview Lab → · Contrast checker → · Palette generator →

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