#5A23BD#5A23BD

#5A23BD is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 44.0% C 0.216 H 290.6°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#5A23BD
RGBrgb(90, 35, 189)
HSLhsl(261, 69%, 44%)
HSVhsv(261, 81%, 74%)
CMYKcmyk(52.4%, 81.5%, 0%, 25.9%)
CIE-LABlab(31.92, 57.51, -70.39)
CIE-LCHlch(31.92, 90.90, 309.25°)
OKLaboklab(43.95% 0.0762 -0.2024)
OKLCHoklch(43.95% 0.216 290.6)
XYZxyz(14.0001, 7.0492, 48.7572)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A23BD #86BD23
analogous
#2339BD #5A23BD #A723BD
triadic
#5A23BD #BD5A23 #23BD5A
tetradic
#5A23BD #BD2339 #86BD23 #23BDA7
square
#5A23BD #BD2339 #86BD23 #23BDA7
split-complementary
#5A23BD #BDA723 #39BD23
monochromatic
#291056 #411989 #5A23BD #7941DC #9D75E5

Accessibility & contrast

On white

8.71
#5A23BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5A23BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A23BD
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A23BD#FFFFFF#000000##FFFFFF
##5A23BD1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC1
Deuteranopia (green-blind)
#0048BA
Tritanopia (blue-blind)
#355172
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a23bd;
/* rgb */ color: rgb(90, 35, 189);
/* oklch */ color: oklch(44.0% 0.216 290.6);
Tailwind
colors: {
  custom: {
    50: '#9466d2',
    500: '#5a23bd',
    950: '#000000',
  },
}
SCSS
$custom: #5a23bd;
$custom-light: #9466d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a23bd",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 189
  },
  "hsl": {
    "h": 261.429,
    "s": 68.75,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43951,
    "c": 0.21626,
    "h": 290.6
  },
  "luminance": 0.0705
}

Semantic roles & 50–950 ramp

primary
#5A23BD
secondary
#ABCD6F
accent
#EC3CAD
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0614
muted
#7E7A83

Preview Lab

Preview with #5A23BD

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

Preview Lab → · Contrast checker → · Palette generator →

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