#5C23A9#5C23A9

#5C23A9 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 42.3% C 0.195 H 296.1°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#5C23A9
RGBrgb(92, 35, 169)
HSLhsl(266, 66%, 40%)
HSVhsv(266, 79%, 66%)
CMYKcmyk(45.6%, 79.3%, 0%, 33.7%)
CIE-LABlab(30.26, 52.65, -61.19)
CIE-LCHlch(30.26, 80.72, 310.71°)
OKLaboklab(42.28% 0.0858 -0.1754)
OKLCHoklch(42.28% 0.195 296.1)
XYZxyz(12.1742, 6.3417, 38.1111)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C23A9 #70A923
analogous
#232DA9 #5C23A9 #9F23A9
triadic
#5C23A9 #A95C23 #23A95C
tetradic
#5C23A9 #A9232D #70A923 #23A99F
square
#5C23A9 #A9232D #70A923 #23A99F
split-complementary
#5C23A9 #A99F23 #2DA923
monochromatic
#250E44 #401976 #5C23A9 #7934D5 #9A67DF

Accessibility & contrast

On white

9.26
#5C23A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#5C23A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C23A9
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C23A9#FFFFFF#000000##FFFFFF
##5C23A91.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AD
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#474966
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c23a9;
/* rgb */ color: rgb(92, 35, 169);
/* oklch */ color: oklch(42.3% 0.195 296.1);
Tailwind
colors: {
  custom: {
    50: '#9265c4',
    500: '#5c23a9',
    950: '#000000',
  },
}
SCSS
$custom: #5c23a9;
$custom-light: #9265c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5c23a9",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 265.522,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.4228,
    "c": 0.19526,
    "h": 296.1
  },
  "luminance": 0.06342
}

Semantic roles & 50–950 ramp

primary
#5C23A9
secondary
#9BC563
accent
#E93FA1
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5C23A9

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

Preview Lab → · Contrast checker → · Palette generator →

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