#5A23A5#5A23A5

#5A23A5 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.7% C 0.191 H 296.1°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5A23A5
RGBrgb(90, 35, 165)
HSLhsl(265, 65%, 39%)
HSVhsv(265, 79%, 65%)
CMYKcmyk(45.5%, 78.8%, 0%, 35.3%)
CIE-LABlab(29.64, 51.33, -59.80)
CIE-LCHlch(29.64, 78.80, 310.64°)
OKLaboklab(41.68% 0.084 -0.1714)
OKLCHoklch(41.68% 0.191 296.1)
XYZxyz(11.6072, 6.0921, 36.1543)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A23A5 #6EA523
analogous
#232DA5 #5A23A5 #9B23A5
triadic
#5A23A5 #A55A23 #23A55A
tetradic
#5A23A5 #A5232D #6EA523 #23A59B
square
#5A23A5 #A5232D #6EA523 #23A59B
split-complementary
#5A23A5 #A59B23 #2DA523
monochromatic
#230E40 #3E1873 #5A23A5 #7632D3 #9864DE

Accessibility & contrast

On white

9.47
#5A23A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5A23A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A23A5
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A23A5#FFFFFF#000000##FFFFFF
##5A23A51.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#454764
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a23a5;
/* rgb */ color: rgb(90, 35, 165);
/* oklch */ color: oklch(41.7% 0.191 296.1);
Tailwind
colors: {
  custom: {
    50: '#9065c1',
    500: '#5a23a5',
    950: '#000000',
  },
}
SCSS
$custom: #5a23a5;
$custom-light: #9065c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a23a5",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 265.385,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41684,
    "c": 0.19083,
    "h": 296.1
  },
  "luminance": 0.06092
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A23A5

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

Preview Lab → · Contrast checker → · Palette generator →

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