#5F24A5#5F24A5

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

Color values

HEX#5F24A5
RGBrgb(95, 36, 165)
HSLhsl(267, 64%, 39%)
HSVhsv(267, 78%, 65%)
CMYKcmyk(42.4%, 78.2%, 0%, 35.3%)
CIE-LABlab(30.43, 51.69, -58.49)
CIE-LCHlch(30.43, 78.06, 311.47°)
OKLaboklab(42.37% 0.0908 -0.1674)
OKLCHoklch(42.37% 0.19 298.5)
XYZxyz(12.1400, 6.4111, 36.1879)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F24A5 #6AA524
analogous
#242AA5 #5F24A5 #A024A5
triadic
#5F24A5 #A55F24 #24A55F
tetradic
#5F24A5 #A5242A #6AA524 #24A5A0
square
#5F24A5 #A5242A #6AA524 #24A5A0
split-complementary
#5F24A5 #A5A024 #2AA524
monochromatic
#250E41 #421973 #5F24A5 #7C34D3 #9D66DE

Accessibility & contrast

On white

9.20
#5F24A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F24A5
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F24A5#FFFFFF#000000##FFFFFF
##5F24A51.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f24a5;
/* rgb */ color: rgb(95, 36, 165);
/* oklch */ color: oklch(42.4% 0.190 298.5);
Tailwind
colors: {
  custom: {
    50: '#9366c1',
    500: '#5f24a5',
    950: '#000000',
  },
}
SCSS
$custom: #5f24a5;
$custom-light: #9366c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f24a5",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 165
  },
  "hsl": {
    "h": 267.442,
    "s": 64.179,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42371,
    "c": 0.19039,
    "h": 298.5
  },
  "luminance": 0.06411
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F24A5

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

Preview Lab → · Contrast checker → · Palette generator →

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