#5A23A0#5A23A0

#5A23A0 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.185 H 297.4°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#5A23A0
RGBrgb(90, 35, 160)
HSLhsl(266, 64%, 38%)
HSVhsv(266, 78%, 63%)
CMYKcmyk(43.7%, 78.1%, 0%, 37.3%)
CIE-LABlab(29.19, 50.05, -57.51)
CIE-LCHlch(29.19, 76.23, 311.03°)
OKLaboklab(41.23% 0.0854 -0.1646)
OKLCHoklch(41.23% 0.185 297.4)
XYZxyz(11.1610, 5.9136, 33.8043)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A23A0 #69A023
analogous
#232AA0 #5A23A0 #9823A0
triadic
#5A23A0 #A05A23 #23A05A
tetradic
#5A23A0 #A0232A #69A023 #23A098
square
#5A23A0 #A0232A #69A023 #23A098
split-complementary
#5A23A0 #A09823 #2AA023
monochromatic
#220D3C #3E186E #5A23A0 #762FD1 #9761DC

Accessibility & contrast

On white

9.62
#5A23A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5A23A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A23A0
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A23A0#FFFFFF#000000##FFFFFF
##5A23A01.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#484561
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a23a0;
/* rgb */ color: rgb(90, 35, 160);
/* oklch */ color: oklch(41.2% 0.185 297.4);
Tailwind
colors: {
  custom: {
    50: '#9064bd',
    500: '#5a23a0',
    950: '#000000',
  },
}
SCSS
$custom: #5a23a0;
$custom-light: #9064bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a23a0",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 160
  },
  "hsl": {
    "h": 266.4,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41231,
    "c": 0.18548,
    "h": 297.4
  },
  "luminance": 0.05914
}

Semantic roles & 50–950 ramp

primary
#5A23A0
secondary
#95C15D
accent
#E7419E
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A23A0

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

Preview Lab → · Contrast checker → · Palette generator →

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