#5A23A7#5A23A7

#5A23A7 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.9% C 0.193 H 295.6°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#5A23A7
RGBrgb(90, 35, 167)
HSLhsl(265, 65%, 40%)
HSVhsv(265, 79%, 65%)
CMYKcmyk(46.1%, 79%, 0%, 34.5%)
CIE-LABlab(29.83, 51.84, -60.71)
CIE-LCHlch(29.83, 79.83, 310.50°)
OKLaboklab(41.87% 0.0834 -0.174)
OKLCHoklch(41.87% 0.193 295.6)
XYZxyz(11.7907, 6.1654, 37.1206)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A23A7 #70A723
analogous
#232EA7 #5A23A7 #9C23A7
triadic
#5A23A7 #A75A23 #23A75A
tetradic
#5A23A7 #A7232E #70A723 #23A79C
square
#5A23A7 #A7232E #70A723 #23A79C
split-complementary
#5A23A7 #A79C23 #2EA723
monochromatic
#230E42 #3F1874 #5A23A7 #7633D4 #9866DF

Accessibility & contrast

On white

9.40
#5A23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A23A7
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A23A7#FFFFFF#000000##FFFFFF
##5A23A71.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a23a7;
/* rgb */ color: rgb(90, 35, 167);
/* oklch */ color: oklch(41.9% 0.193 295.6);
Tailwind
colors: {
  custom: {
    50: '#9165c2',
    500: '#5a23a7',
    950: '#000000',
  },
}
SCSS
$custom: #5a23a7;
$custom-light: #9165c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a23a7",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 265,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41867,
    "c": 0.19296,
    "h": 295.6
  },
  "luminance": 0.06166
}

Semantic roles & 50–950 ramp

primary
#5A23A7
secondary
#9BC461
accent
#E83FA2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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