#5F24B0#5F24B0

#5F24B0 is a dark, highly saturated violet. Relative luminance 0.068; OKLCH L 43.4% C 0.202 H 295.7°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#5F24B0
RGBrgb(95, 36, 176)
HSLhsl(265, 66%, 42%)
HSVhsv(265, 80%, 69%)
CMYKcmyk(46%, 79.5%, 0%, 31%)
CIE-LABlab(31.41, 54.46, -63.48)
CIE-LCHlch(31.41, 83.64, 310.63°)
OKLaboklab(43.36% 0.0875 -0.182)
OKLCHoklch(43.36% 0.202 295.7)
XYZxyz(13.1846, 6.8289, 41.6893)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F24B0 #75B024
analogous
#242FB0 #5F24B0 #A524B0
triadic
#5F24B0 #B05F24 #24B05F
tetradic
#5F24B0 #B0242F #75B024 #24B0A5
square
#5F24B0 #B0242F #75B024 #24B0A5
split-complementary
#5F24B0 #B0A524 #2FB024
monochromatic
#280F4A #441A7D #5F24B0 #7C3AD7 #9E6DE1

Accessibility & contrast

On white

8.88
#5F24B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5F24B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F24B0
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F24B0#FFFFFF#000000##FFFFFF
##5F24B01.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB4
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#484C6A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f24b0;
/* rgb */ color: rgb(95, 36, 176);
/* oklch */ color: oklch(43.4% 0.202 295.7);
Tailwind
colors: {
  custom: {
    50: '#9566c9',
    500: '#5f24b0',
    950: '#000000',
  },
}
SCSS
$custom: #5f24b0;
$custom-light: #9566c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f24b0",
  "rgb": {
    "r": 95,
    "g": 36,
    "b": 176
  },
  "hsl": {
    "h": 265.286,
    "s": 66.038,
    "l": 41.569
  },
  "oklch": {
    "l": 0.43362,
    "c": 0.20194,
    "h": 295.7
  },
  "luminance": 0.06829
}

Semantic roles & 50–950 ramp

primary
#5F24B0
secondary
#9FC868
accent
#E93FA1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F24B0

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

Preview Lab → · Contrast checker → · Palette generator →

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