#5C23A6#5C23A6

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

Color values

HEX#5C23A6
RGBrgb(92, 35, 166)
HSLhsl(266, 65%, 39%)
HSVhsv(266, 79%, 65%)
CMYKcmyk(44.6%, 78.9%, 0%, 34.9%)
CIE-LABlab(29.99, 51.89, -59.83)
CIE-LCHlch(29.99, 79.20, 310.93°)
OKLaboklab(42.01% 0.0867 -0.1714)
OKLCHoklch(42.01% 0.192 296.8)
XYZxyz(11.8958, 6.2303, 36.6448)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C23A6 #6DA623
analogous
#232CA6 #5C23A6 #9E23A6
triadic
#5C23A6 #A65C23 #23A65C
tetradic
#5C23A6 #A6232C #6DA623 #23A69E
square
#5C23A6 #A6232C #6DA623 #23A69E
split-complementary
#5C23A6 #A69E23 #2CA623
monochromatic
#240E41 #401873 #5C23A6 #7932D4 #9A65DF

Accessibility & contrast

On white

9.35
#5C23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5C23A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C23A6
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C23A6#FFFFFF#000000##FFFFFF
##5C23A61.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#484764
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5c23a6;
/* rgb */ color: rgb(92, 35, 166);
/* oklch */ color: oklch(42.0% 0.192 296.8);
Tailwind
colors: {
  custom: {
    50: '#9265c1',
    500: '#5c23a6',
    950: '#000000',
  },
}
SCSS
$custom: #5c23a6;
$custom-light: #9265c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5c23a6",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 266.107,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42006,
    "c": 0.19208,
    "h": 296.8
  },
  "luminance": 0.06231
}

Semantic roles & 50–950 ramp

primary
#5C23A6
secondary
#99C461
accent
#E8409F
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5C23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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