#5A23A6#5A23A6

#5A23A6 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.8% C 0.192 H 295.9°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#5A23A6
RGBrgb(90, 35, 166)
HSLhsl(265, 65%, 39%)
HSVhsv(265, 79%, 65%)
CMYKcmyk(45.8%, 78.9%, 0%, 34.9%)
CIE-LABlab(29.73, 51.58, -60.25)
CIE-LCHlch(29.73, 79.32, 310.57°)
OKLaboklab(41.78% 0.0837 -0.1727)
OKLCHoklch(41.78% 0.192 295.9)
XYZxyz(11.6986, 6.1286, 36.6356)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A23A6 #6FA623
analogous
#232EA6 #5A23A6 #9C23A6
triadic
#5A23A6 #A65A23 #23A65A
tetradic
#5A23A6 #A6232E #6FA623 #23A69C
square
#5A23A6 #A6232E #6FA623 #23A69C
split-complementary
#5A23A6 #A69C23 #2EA623
monochromatic
#230E41 #3F1873 #5A23A6 #7632D4 #9865DF

Accessibility & contrast

On white

9.43
#5A23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5A23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A23A6
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A23A6#FFFFFF#000000##FFFFFF
##5A23A61.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#454864
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a23a6;
/* rgb */ color: rgb(90, 35, 166);
/* oklch */ color: oklch(41.8% 0.192 295.9);
Tailwind
colors: {
  custom: {
    50: '#9065c1',
    500: '#5a23a6',
    950: '#000000',
  },
}
SCSS
$custom: #5a23a6;
$custom-light: #9065c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a23a6",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 265.191,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41775,
    "c": 0.1919,
    "h": 295.9
  },
  "luminance": 0.06129
}

Semantic roles & 50–950 ramp

primary
#5A23A6
secondary
#9AC461
accent
#E840A1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5A23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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