#5A23A9#5A23A9

#5A23A9 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.1% C 0.195 H 295.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#5A23A9
RGBrgb(90, 35, 169)
HSLhsl(265, 66%, 40%)
HSVhsv(265, 79%, 66%)
CMYKcmyk(46.7%, 79.3%, 0%, 33.7%)
CIE-LABlab(30.01, 52.35, -61.61)
CIE-LCHlch(30.01, 80.85, 310.36°)
OKLaboklab(42.05% 0.0828 -0.1767)
OKLCHoklch(42.05% 0.195 295.1)
XYZxyz(11.9770, 6.2400, 38.1018)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A23A9 #72A923
analogous
#232FA9 #5A23A9 #9D23A9
triadic
#5A23A9 #A95A23 #23A95A
tetradic
#5A23A9 #A9232F #72A923 #23A99D
square
#5A23A9 #A9232F #72A923 #23A99D
split-complementary
#5A23A9 #A99D23 #2FA923
monochromatic
#240E44 #3F1976 #5A23A9 #7634D5 #9867DF

Accessibility & contrast

On white

9.34
#5A23A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5A23A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A23A9
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A23A9#FFFFFF#000000##FFFFFF
##5A23A91.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#0045A7
Tritanopia (blue-blind)
#434966
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a23a9;
/* rgb */ color: rgb(90, 35, 169);
/* oklch */ color: oklch(42.1% 0.195 295.1);
Tailwind
colors: {
  custom: {
    50: '#9165c4',
    500: '#5a23a9',
    950: '#000000',
  },
}
SCSS
$custom: #5a23a9;
$custom-light: #9165c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a23a9",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 264.627,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.42051,
    "c": 0.1951,
    "h": 295.1
  },
  "luminance": 0.0624
}

Semantic roles & 50–950 ramp

primary
#5A23A9
secondary
#9DC563
accent
#E93FA3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A23A9

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

Preview Lab → · Contrast checker → · Palette generator →

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