#5F24A6#5F24A6

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

Color values

HEX#5F24A6
RGBrgb(95, 36, 166)
HSLhsl(267, 64%, 40%)
HSVhsv(267, 78%, 65%)
CMYKcmyk(42.8%, 78.3%, 0%, 34.9%)
CIE-LABlab(30.51, 51.94, -58.95)
CIE-LCHlch(30.51, 78.57, 311.38°)
OKLaboklab(42.46% 0.0905 -0.1687)
OKLCHoklch(42.46% 0.191 298.2)
XYZxyz(12.2313, 6.4476, 36.6691)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F24A6 #6BA624
analogous
#242AA6 #5F24A6 #A024A6
triadic
#5F24A6 #A65F24 #24A65F
tetradic
#5F24A6 #A6242A #6BA624 #24A6A0
square
#5F24A6 #A6242A #6BA624 #24A6A0
split-complementary
#5F24A6 #A6A024 #2AA624
monochromatic
#250E41 #421974 #5F24A6 #7C34D3 #9D66DE

Accessibility & contrast

On white

9.17
#5F24A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F24A6
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F24A6#FFFFFF#000000##FFFFFF
##5F24A61.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f24a6;
/* rgb */ color: rgb(95, 36, 166);
/* oklch */ color: oklch(42.5% 0.191 298.2);
Tailwind
colors: {
  custom: {
    50: '#9366c1',
    500: '#5f24a6',
    950: '#000000',
  },
}
SCSS
$custom: #5f24a6;
$custom-light: #9366c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f24a6",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 166
  },
  "hsl": {
    "h": 267.231,
    "s": 64.356,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4246,
    "c": 0.19143,
    "h": 298.2
  },
  "luminance": 0.06448
}

Semantic roles & 50–950 ramp

primary
#5F24A6
secondary
#97C462
accent
#E7409C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F24A6

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

Preview Lab → · Contrast checker → · Palette generator →

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