#5C239D#5C239D

#5C239D is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.2% C 0.183 H 299.3°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#5C239D
RGBrgb(92, 35, 157)
HSLhsl(268, 64%, 38%)
HSVhsv(268, 78%, 62%)
CMYKcmyk(41.4%, 77.7%, 0%, 38.4%)
CIE-LABlab(29.19, 49.61, -55.68)
CIE-LCHlch(29.19, 74.58, 311.70°)
OKLaboklab(41.2% 0.0893 -0.1592)
OKLCHoklch(41.2% 0.183 299.3)
XYZxyz(11.0989, 5.9116, 32.4480)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C239D #649D23
analogous
#23279D #5C239D #99239D
triadic
#5C239D #9D5C23 #239D5C
tetradic
#5C239D #9D2327 #649D23 #239D99
square
#5C239D #9D2327 #649D23 #239D99
split-complementary
#5C239D #9D9923 #279D23
monochromatic
#210D39 #3F186B #5C239D #792ECF #995FDB

Accessibility & contrast

On white

9.62
#5C239D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5C239D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C239D
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C239D#FFFFFF#000000##FFFFFF
##5C239D1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#4C445F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5c239d;
/* rgb */ color: rgb(92, 35, 157);
/* oklch */ color: oklch(41.2% 0.183 299.3);
Tailwind
colors: {
  custom: {
    50: '#9165bb',
    500: '#5c239d',
    950: '#000000',
  },
}
SCSS
$custom: #5c239d;
$custom-light: #9165bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5c239d",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 157
  },
  "hsl": {
    "h": 268.033,
    "s": 63.542,
    "l": 37.647
  },
  "oklch": {
    "l": 0.41203,
    "c": 0.18253,
    "h": 299.3
  },
  "luminance": 0.05912
}

Semantic roles & 50–950 ramp

primary
#5C239D
secondary
#91C05C
accent
#E74199
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C239D

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

Preview Lab → · Contrast checker → · Palette generator →

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