#5A24AF#5A24AF

#5A24AF is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.7% C 0.201 H 293.6°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#5A24AF
RGBrgb(90, 36, 175)
HSLhsl(263, 66%, 41%)
HSVhsv(263, 79%, 69%)
CMYKcmyk(48.6%, 79.4%, 0%, 31.4%)
CIE-LABlab(30.71, 53.48, -64.06)
CIE-LCHlch(30.71, 83.45, 309.86°)
OKLaboklab(42.71% 0.0802 -0.1839)
OKLCHoklch(42.71% 0.201 293.6)
XYZxyz(12.5830, 6.5301, 41.1466)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A24AF #79AF24
analogous
#2434AF #5A24AF #A024AF
triadic
#5A24AF #AF5A24 #24AF5A
tetradic
#5A24AF #AF2434 #79AF24 #24AFA0
square
#5A24AF #AF2434 #79AF24 #24AFA0
split-complementary
#5A24AF #AFA024 #34AF24
monochromatic
#260F49 #401A7C #5A24AF #773AD6 #9A6DE1

Accessibility & contrast

On white

9.11
#5A24AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A24AF
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A24AF#FFFFFF#000000##FFFFFF
##5A24AF1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#3F4C6A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a24af;
/* rgb */ color: rgb(90, 36, 175);
/* oklch */ color: oklch(42.7% 0.201 293.6);
Tailwind
colors: {
  custom: {
    50: '#9266c8',
    500: '#5a24af',
    950: '#000000',
  },
}
SCSS
$custom: #5a24af;
$custom-light: #9266c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a24af",
  "rgb": {
    "r": 90,
    "g": 36,
    "b": 175
  },
  "hsl": {
    "h": 263.309,
    "s": 65.877,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4271,
    "c": 0.20057,
    "h": 293.6
  },
  "luminance": 0.06531
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A24AF

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

Preview Lab → · Contrast checker → · Palette generator →

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