#5A24B2#5A24B2

#5A24B2 is a dark, highly saturated violet. Relative luminance 0.067; OKLCH L 43.0% C 0.204 H 292.9°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#5A24B2
RGBrgb(90, 36, 178)
HSLhsl(263, 66%, 42%)
HSVhsv(263, 80%, 70%)
CMYKcmyk(49.4%, 79.8%, 0%, 30.2%)
CIE-LABlab(30.99, 54.26, -65.38)
CIE-LCHlch(30.99, 84.97, 309.69°)
OKLaboklab(42.99% 0.0792 -0.1877)
OKLCHoklch(42.99% 0.204 292.9)
XYZxyz(12.8810, 6.6493, 42.7156)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A24B2 #7CB224
analogous
#2435B2 #5A24B2 #A124B2
triadic
#5A24B2 #B25A24 #24B25A
tetradic
#5A24B2 #B22435 #7CB224 #24B2A1
square
#5A24B2 #B22435 #7CB224 #24B2A1
split-complementary
#5A24B2 #B2A124 #35B224
monochromatic
#270F4C #401A7F #5A24B2 #773CD8 #9A6FE2

Accessibility & contrast

On white

9.01
#5A24B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#5A24B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A24B2
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A24B2#FFFFFF#000000##FFFFFF
##5A24B21.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#0046AF
Tritanopia (blue-blind)
#3E4D6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a24b2;
/* rgb */ color: rgb(90, 36, 178);
/* oklch */ color: oklch(43.0% 0.204 292.9);
Tailwind
colors: {
  custom: {
    50: '#9266ca',
    500: '#5a24b2',
    950: '#000000',
  },
}
SCSS
$custom: #5a24b2;
$custom-light: #9266ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5a24b2",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 178
  },
  "hsl": {
    "h": 262.817,
    "s": 66.355,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42992,
    "c": 0.20377,
    "h": 292.9
  },
  "luminance": 0.0665
}

Semantic roles & 50–950 ramp

primary
#5A24B2
secondary
#A4C869
accent
#E93FA8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A24B2

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

Preview Lab → · Contrast checker → · Palette generator →

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