#5C23AC#5C23AC

#5C23AC is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.6% C 0.198 H 295.3°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#5C23AC
RGBrgb(92, 35, 172)
HSLhsl(265, 66%, 41%)
HSVhsv(265, 80%, 67%)
CMYKcmyk(46.5%, 79.7%, 0%, 32.5%)
CIE-LABlab(30.53, 53.41, -62.54)
CIE-LCHlch(30.53, 82.25, 310.50°)
OKLaboklab(42.56% 0.0849 -0.1793)
OKLCHoklch(42.56% 0.198 295.3)
XYZxyz(12.4590, 6.4556, 39.6113)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C23AC #73AC23
analogous
#232EAC #5C23AC #A123AC
triadic
#5C23AC #AC5C23 #23AC5C
tetradic
#5C23AC #AC232E #73AC23 #23ACA1
square
#5C23AC #AC232E #73AC23 #23ACA1
split-complementary
#5C23AC #ACA123 #2EAC23
monochromatic
#260E46 #411979 #5C23AC #7936D6 #9B69E0

Accessibility & contrast

On white

9.17
#5C23AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#5C23AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C23AC
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C23AC#FFFFFF#000000##FFFFFF
##5C23AC1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B0
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#454A68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5c23ac;
/* rgb */ color: rgb(92, 35, 172);
/* oklch */ color: oklch(42.6% 0.198 295.3);
Tailwind
colors: {
  custom: {
    50: '#9265c6',
    500: '#5c23ac',
    950: '#000000',
  },
}
SCSS
$custom: #5c23ac;
$custom-light: #9265c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c23ac",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 172
  },
  "hsl": {
    "h": 264.964,
    "s": 66.184,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42555,
    "c": 0.19843,
    "h": 295.3
  },
  "luminance": 0.06456
}

Semantic roles & 50–950 ramp

primary
#5C23AC
secondary
#9EC664
accent
#E93FA2
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5C23AC

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

Preview Lab → · Contrast checker → · Palette generator →

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