#5A23B0#5A23B0

#5A23B0 is a dark, highly saturated violet. Relative luminance 0.065; OKLCH L 42.7% C 0.203 H 293.4°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#5A23B0
RGBrgb(90, 35, 176)
HSLhsl(263, 67%, 41%)
HSVhsv(263, 80%, 69%)
CMYKcmyk(48.9%, 80.1%, 0%, 31%)
CIE-LABlab(30.66, 54.16, -64.73)
CIE-LCHlch(30.66, 84.40, 309.92°)
OKLaboklab(42.71% 0.0806 -0.1858)
OKLCHoklch(42.71% 0.203 293.4)
XYZxyz(12.6518, 6.5099, 41.6558)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A23B0 #79B023
analogous
#2333B0 #5A23B0 #A123B0
triadic
#5A23B0 #B05A23 #23B05A
tetradic
#5A23B0 #B02333 #79B023 #23B0A1
square
#5A23B0 #B02333 #79B023 #23B0A1
split-complementary
#5A23B0 #B0A123 #33B023
monochromatic
#260F4A #40197D #5A23B0 #7739D8 #9A6CE2

Accessibility & contrast

On white

9.12
#5A23B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5A23B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A23B0
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A23B0#FFFFFF#000000##FFFFFF
##5A23B01.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB4
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#3F4C6A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a23b0;
/* rgb */ color: rgb(90, 35, 176);
/* oklch */ color: oklch(42.7% 0.203 293.4);
Tailwind
colors: {
  custom: {
    50: '#9265c9',
    500: '#5a23b0',
    950: '#000000',
  },
}
SCSS
$custom: #5a23b0;
$custom-light: #9265c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a23b0",
  "rgb": {
    "r": 90,
    "g": 35,
    "b": 176
  },
  "hsl": {
    "h": 263.404,
    "s": 66.825,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42705,
    "c": 0.20254,
    "h": 293.4
  },
  "luminance": 0.0651
}

Semantic roles & 50–950 ramp

primary
#5A23B0
secondary
#A2C867
accent
#EA3EA7
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A23B0

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

Preview Lab → · Contrast checker → · Palette generator →

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