#5A24B1#5A24B1

#5A24B1 is a dark, highly saturated violet. Relative luminance 0.066; OKLCH L 42.9% C 0.203 H 293.1°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#5A24B1
RGBrgb(90, 36, 177)
HSLhsl(263, 66%, 42%)
HSVhsv(263, 80%, 69%)
CMYKcmyk(49.2%, 79.7%, 0%, 30.6%)
CIE-LABlab(30.90, 54.00, -64.94)
CIE-LCHlch(30.90, 84.46, 309.74°)
OKLaboklab(42.9% 0.0795 -0.1864)
OKLCHoklch(42.9% 0.203 293.1)
XYZxyz(12.7809, 6.6093, 42.1888)
Luminance0.0661 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A24B1 #7BB124
analogous
#2434B1 #5A24B1 #A124B1
triadic
#5A24B1 #B15A24 #24B15A
tetradic
#5A24B1 #B12434 #7BB124 #24B1A1
square
#5A24B1 #B12434 #7BB124 #24B1A1
split-complementary
#5A24B1 #B1A124 #34B124
monochromatic
#260F4B #401A7E #5A24B1 #773BD7 #9A6EE1

Accessibility & contrast

On white

9.04
#5A24B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5A24B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A24B1
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A24B1#FFFFFF#000000##FFFFFF
##5A24B11.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a24b1;
/* rgb */ color: rgb(90, 36, 177);
/* oklch */ color: oklch(42.9% 0.203 293.1);
Tailwind
colors: {
  custom: {
    50: '#9266c9',
    500: '#5a24b1',
    950: '#000000',
  },
}
SCSS
$custom: #5a24b1;
$custom-light: #9266c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a24b1",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 177
  },
  "hsl": {
    "h": 262.979,
    "s": 66.197,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42897,
    "c": 0.20271,
    "h": 293.1
  },
  "luminance": 0.0661
}

Semantic roles & 50–950 ramp

primary
#5A24B1
secondary
#A4C869
accent
#E93FA8
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A24B1

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

Preview Lab → · Contrast checker → · Palette generator →

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