#5A24B0#5A24B0

#5A24B0 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.8% C 0.202 H 293.3°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5A24B0
RGBrgb(90, 36, 176)
HSLhsl(263, 66%, 42%)
HSVhsv(263, 80%, 69%)
CMYKcmyk(48.9%, 79.5%, 0%, 31%)
CIE-LABlab(30.81, 53.74, -64.50)
CIE-LCHlch(30.81, 83.96, 309.80°)
OKLaboklab(42.8% 0.0799 -0.1851)
OKLCHoklch(42.8% 0.202 293.3)
XYZxyz(12.6816, 6.5696, 41.6657)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A24B0 #7AB024
analogous
#2434B0 #5A24B0 #A024B0
triadic
#5A24B0 #B05A24 #24B05A
tetradic
#5A24B0 #B02434 #7AB024 #24B0A0
square
#5A24B0 #B02434 #7AB024 #24B0A0
split-complementary
#5A24B0 #B0A024 #34B024
monochromatic
#260F4A #401A7D #5A24B0 #773AD7 #9A6DE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A24B0#FFFFFF#000000##FFFFFF
##5A24B01.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)
#004AB4
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#3F4C6A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a24b0;
/* rgb */ color: rgb(90, 36, 176);
/* oklch */ color: oklch(42.8% 0.202 293.3);
Tailwind
colors: {
  custom: {
    50: '#9266c9',
    500: '#5a24b0',
    950: '#000000',
  },
}
SCSS
$custom: #5a24b0;
$custom-light: #9266c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a24b0",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 176
  },
  "hsl": {
    "h": 263.143,
    "s": 66.038,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42803,
    "c": 0.20164,
    "h": 293.3
  },
  "luminance": 0.0657
}

Semantic roles & 50–950 ramp

primary
#5A24B0
secondary
#A3C868
accent
#E93FA7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A24B0

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

Preview Lab → · Contrast checker → · Palette generator →

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