#5F24AC#5F24AC

#5F24AC is a dark, vivid violet. Relative luminance 0.067; OKLCH L 43.0% C 0.198 H 296.7°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#5F24AC
RGBrgb(95, 36, 172)
HSLhsl(266, 65%, 41%)
HSVhsv(266, 79%, 67%)
CMYKcmyk(44.8%, 79.1%, 0%, 32.5%)
CIE-LABlab(31.05, 53.45, -61.68)
CIE-LCHlch(31.05, 81.62, 310.91°)
OKLaboklab(43% 0.0887 -0.1767)
OKLCHoklch(43% 0.198 296.7)
XYZxyz(12.7946, 6.6729, 39.6356)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F24AC #71AC24
analogous
#242DAC #5F24AC #A324AC
triadic
#5F24AC #AC5F24 #24AC5F
tetradic
#5F24AC #AC242D #71AC24 #24ACA3
square
#5F24AC #AC242D #71AC24 #24ACA3
split-complementary
#5F24AC #ACA324 #2DAC24
monochromatic
#270F47 #431979 #5F24AC #7C38D5 #9D6AE0

Accessibility & contrast

On white

9.00
#5F24AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5F24AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F24AC
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F24AC#FFFFFF#000000##FFFFFF
##5F24AC1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#0047A9
Tritanopia (blue-blind)
#4A4A68
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f24ac;
/* rgb */ color: rgb(95, 36, 172);
/* oklch */ color: oklch(43.0% 0.198 296.7);
Tailwind
colors: {
  custom: {
    50: '#9466c6',
    500: '#5f24ac',
    950: '#000000',
  },
}
SCSS
$custom: #5f24ac;
$custom-light: #9466c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f24ac",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 172
  },
  "hsl": {
    "h": 266.029,
    "s": 65.385,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42998,
    "c": 0.19774,
    "h": 296.7
  },
  "luminance": 0.06673
}

Semantic roles & 50–950 ramp

primary
#5F24AC
secondary
#9CC666
accent
#E83F9F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F24AC

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

Preview Lab → · Contrast checker → · Palette generator →

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