#5C23A0#5C23A0

#5C23A0 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.5% C 0.186 H 298.4°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#5C23A0
RGBrgb(92, 35, 160)
HSLhsl(267, 64%, 38%)
HSVhsv(267, 78%, 63%)
CMYKcmyk(42.5%, 78.1%, 0%, 37.3%)
CIE-LABlab(29.45, 50.37, -57.07)
CIE-LCHlch(29.45, 76.12, 311.43°)
OKLaboklab(41.47% 0.0885 -0.1633)
OKLCHoklch(41.47% 0.186 298.4)
XYZxyz(11.3582, 6.0153, 33.8135)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C23A0 #67A023
analogous
#2328A0 #5C23A0 #9A23A0
triadic
#5C23A0 #A05C23 #23A05C
tetradic
#5C23A0 #A02328 #67A023 #23A09A
square
#5C23A0 #A02328 #67A023 #23A09A
split-complementary
#5C23A0 #A09A23 #28A023
monochromatic
#220D3C #3F186E #5C23A0 #792FD1 #9961DC

Accessibility & contrast

On white

9.53
#5C23A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5C23A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C23A0
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C23A0#FFFFFF#000000##FFFFFF
##5C23A01.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A3
Deuteranopia (green-blind)
#00449E
Tritanopia (blue-blind)
#4B4561
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5c23a0;
/* rgb */ color: rgb(92, 35, 160);
/* oklch */ color: oklch(41.5% 0.186 298.4);
Tailwind
colors: {
  custom: {
    50: '#9165bd',
    500: '#5c23a0',
    950: '#000000',
  },
}
SCSS
$custom: #5c23a0;
$custom-light: #9165bd;
$custom-dark: #000000;
JSON
{
  "hex": "#5c23a0",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 160
  },
  "hsl": {
    "h": 267.36,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41468,
    "c": 0.18572,
    "h": 298.4
  },
  "luminance": 0.06015
}

Semantic roles & 50–950 ramp

primary
#5C23A0
secondary
#94C15D
accent
#E7419B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C23A0

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

Preview Lab → · Contrast checker → · Palette generator →

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