#5F24A0#5F24A0

#5F24A0 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.185 H 299.8°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#5F24A0
RGBrgb(95, 36, 160)
HSLhsl(269, 63%, 38%)
HSVhsv(269, 78%, 63%)
CMYKcmyk(40.6%, 77.5%, 0%, 37.3%)
CIE-LABlab(29.99, 50.44, -56.17)
CIE-LCHlch(29.99, 75.50, 311.92°)
OKLaboklab(41.93% 0.0921 -0.1606)
OKLCHoklch(41.93% 0.185 299.8)
XYZxyz(11.6938, 6.2326, 33.8378)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F24A0 #65A024
analogous
#2427A0 #5F24A0 #9D24A0
triadic
#5F24A0 #A05F24 #24A05F
tetradic
#5F24A0 #A02427 #65A024 #24A09D
square
#5F24A0 #A02427 #65A024 #24A09D
split-complementary
#5F24A0 #A09D24 #27A024
monochromatic
#240E3C #41196E #5F24A0 #7D31D1 #9C63DC

Accessibility & contrast

On white

9.35
#5F24A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5F24A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F24A0
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F24A0#FFFFFF#000000##FFFFFF
##5F24A01.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A3
Deuteranopia (green-blind)
#00469E
Tritanopia (blue-blind)
#504561
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f24a0;
/* rgb */ color: rgb(95, 36, 160);
/* oklch */ color: oklch(41.9% 0.185 299.8);
Tailwind
colors: {
  custom: {
    50: '#9366bd',
    500: '#5f24a0',
    950: '#000000',
  },
}
SCSS
$custom: #5f24a0;
$custom-light: #9366bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5f24a0",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 160
  },
  "hsl": {
    "h": 268.548,
    "s": 63.265,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41933,
    "c": 0.18511,
    "h": 299.8
  },
  "luminance": 0.06233
}

Semantic roles & 50–950 ramp

primary
#5F24A0
secondary
#92C15F
accent
#E64198
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5F24A0

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

Preview Lab → · Contrast checker → · Palette generator →

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