#5F24AE#5F24AE

#5F24AE is a dark, vivid violet. Relative luminance 0.068; OKLCH L 43.2% C 0.200 H 296.2°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#5F24AE
RGBrgb(95, 36, 174)
HSLhsl(266, 66%, 41%)
HSVhsv(266, 79%, 68%)
CMYKcmyk(45.4%, 79.3%, 0%, 31.8%)
CIE-LABlab(31.23, 53.95, -62.58)
CIE-LCHlch(31.23, 82.63, 310.76°)
OKLaboklab(43.18% 0.0881 -0.1794)
OKLCHoklch(43.18% 0.2 296.2)
XYZxyz(12.9881, 6.7503, 40.6548)
Luminance0.0675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F24AE #73AE24
analogous
#242EAE #5F24AE #A424AE
triadic
#5F24AE #AE5F24 #24AE5F
tetradic
#5F24AE #AE242E #73AE24 #24AEA4
square
#5F24AE #AE242E #73AE24 #24AEA4
split-complementary
#5F24AE #AEA424 #2EAE24
monochromatic
#280F49 #431A7B #5F24AE #7C39D6 #9E6CE1

Accessibility & contrast

On white

8.94
#5F24AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5F24AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F24AE
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F24AE#FFFFFF#000000##FFFFFF
##5F24AE1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#0048AB
Tritanopia (blue-blind)
#494B69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f24ae;
/* rgb */ color: rgb(95, 36, 174);
/* oklch */ color: oklch(43.2% 0.200 296.2);
Tailwind
colors: {
  custom: {
    50: '#9466c7',
    500: '#5f24ae',
    950: '#000000',
  },
}
SCSS
$custom: #5f24ae;
$custom-light: #9466c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f24ae",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 174
  },
  "hsl": {
    "h": 265.652,
    "s": 65.714,
    "l": 41.176
  },
  "oklch": {
    "l": 0.43179,
    "c": 0.19984,
    "h": 296.2
  },
  "luminance": 0.06751
}

Semantic roles & 50–950 ramp

primary
#5F24AE
secondary
#9EC767
accent
#E93FA0
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F24AE

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

Preview Lab → · Contrast checker → · Palette generator →

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