#5F24A9#5F24A9

#5F24A9 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.195 H 297.4°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5F24A9
RGBrgb(95, 36, 169)
HSLhsl(267, 65%, 40%)
HSVhsv(267, 79%, 66%)
CMYKcmyk(43.8%, 78.7%, 0%, 33.7%)
CIE-LABlab(30.78, 52.69, -60.32)
CIE-LCHlch(30.78, 80.09, 311.14°)
OKLaboklab(42.73% 0.0896 -0.1727)
OKLCHoklch(42.73% 0.195 297.4)
XYZxyz(12.5097, 6.5590, 38.1353)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F24A9 #6EA924
analogous
#242BA9 #5F24A9 #A224A9
triadic
#5F24A9 #A95F24 #24A95F
tetradic
#5F24A9 #A9242B #6EA924 #24A9A2
square
#5F24A9 #A9242B #6EA924 #24A9A2
split-complementary
#5F24A9 #A9A224 #2BA924
monochromatic
#260F44 #431977 #5F24A9 #7C36D4 #9D68DF

Accessibility & contrast

On white

9.08
#5F24A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5F24A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F24A9
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F24A9#FFFFFF#000000##FFFFFF
##5F24A91.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AD
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#4C4966
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5f24a9;
/* rgb */ color: rgb(95, 36, 169);
/* oklch */ color: oklch(42.7% 0.195 297.4);
Tailwind
colors: {
  custom: {
    50: '#9466c4',
    500: '#5f24a9',
    950: '#000000',
  },
}
SCSS
$custom: #5f24a9;
$custom-light: #9466c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f24a9",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 169
  },
  "hsl": {
    "h": 266.617,
    "s": 64.878,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42728,
    "c": 0.19459,
    "h": 297.4
  },
  "luminance": 0.06559
}

Semantic roles & 50–950 ramp

primary
#5F24A9
secondary
#9AC564
accent
#E8409D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F24A9

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

Preview Lab → · Contrast checker → · Palette generator →

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