#5A24BC#5A24BC

#5A24BC is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.9% C 0.214 H 290.7°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#5A24BC
RGBrgb(90, 36, 188)
HSLhsl(261, 68%, 44%)
HSVhsv(261, 81%, 74%)
CMYKcmyk(52.1%, 80.9%, 0%, 26.3%)
CIE-LABlab(31.96, 56.86, -69.74)
CIE-LCHlch(31.96, 89.98, 309.19°)
OKLaboklab(43.95% 0.076 -0.2005)
OKLCHoklch(43.95% 0.214 290.7)
XYZxyz(13.9218, 7.0657, 48.1975)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A24BC #86BC24
analogous
#243ABC #5A24BC #A624BC
triadic
#5A24BC #BC5A24 #24BC5A
tetradic
#5A24BC #BC243A #86BC24 #24BCA6
square
#5A24BC #BC243A #86BC24 #24BCA6
split-complementary
#5A24BC #BCA624 #3ABC24
monochromatic
#291055 #411A89 #5A24BC #7942DB #9D76E5

Accessibility & contrast

On white

8.70
#5A24BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5A24BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A24BC
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A24BC#FFFFFF#000000##FFFFFF
##5A24BC1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC0
Deuteranopia (green-blind)
#0048B9
Tritanopia (blue-blind)
#365171
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a24bc;
/* rgb */ color: rgb(90, 36, 188);
/* oklch */ color: oklch(43.9% 0.214 290.7);
Tailwind
colors: {
  custom: {
    50: '#9367d1',
    500: '#5a24bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a24bc;
$custom-light: #9367d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a24bc",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 188
  },
  "hsl": {
    "h": 261.316,
    "s": 67.857,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43948,
    "c": 0.21439,
    "h": 290.7
  },
  "luminance": 0.07066
}

Semantic roles & 50–950 ramp

primary
#5A24BC
secondary
#ABCC70
accent
#EB3DAD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5A24BC

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

Preview Lab → · Contrast checker → · Palette generator →

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