#5A23A8#5A23A8

#5A23A8 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.0% C 0.194 H 295.4°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#5A23A8
RGBrgb(90, 35, 168)
HSLhsl(265, 66%, 40%)
HSVhsv(265, 79%, 66%)
CMYKcmyk(46.4%, 79.2%, 0%, 34.1%)
CIE-LABlab(29.92, 52.10, -61.16)
CIE-LCHlch(29.92, 80.34, 310.43°)
OKLaboklab(41.96% 0.0831 -0.1753)
OKLCHoklch(41.96% 0.194 295.4)
XYZxyz(11.8835, 6.2026, 37.6093)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A23A8 #71A823
analogous
#232FA8 #5A23A8 #9D23A8
triadic
#5A23A8 #A85A23 #23A85A
tetradic
#5A23A8 #A8232F #71A823 #23A89D
square
#5A23A8 #A8232F #71A823 #23A89D
split-complementary
#5A23A8 #A89D23 #2FA823
monochromatic
#240E43 #3F1875 #5A23A8 #7634D5 #9866DF

Accessibility & contrast

On white

9.37
#5A23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5A23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A23A8
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A23A8#FFFFFF#000000##FFFFFF
##5A23A81.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#444865
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a23a8;
/* rgb */ color: rgb(90, 35, 168);
/* oklch */ color: oklch(42.0% 0.194 295.4);
Tailwind
colors: {
  custom: {
    50: '#9165c3',
    500: '#5a23a8',
    950: '#000000',
  },
}
SCSS
$custom: #5a23a8;
$custom-light: #9165c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a23a8",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 264.812,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41959,
    "c": 0.19404,
    "h": 295.4
  },
  "luminance": 0.06203
}

Semantic roles & 50–950 ramp

primary
#5A23A8
secondary
#9CC562
accent
#E83FA3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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