#5C239C#5C239C

#5C239C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.1% C 0.181 H 299.6°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#5C239C
RGBrgb(92, 35, 156)
HSLhsl(268, 63%, 37%)
HSVhsv(268, 78%, 61%)
CMYKcmyk(41%, 77.6%, 0%, 38.8%)
CIE-LABlab(29.10, 49.36, -55.21)
CIE-LCHlch(29.10, 74.06, 311.80°)
OKLaboklab(41.12% 0.0896 -0.1578)
OKLCHoklch(41.12% 0.181 299.6)
XYZxyz(11.0139, 5.8775, 32.0003)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C239C #639C23
analogous
#23279C #5C239C #98239C
triadic
#5C239C #9C5C23 #239C5C
tetradic
#5C239C #9C2327 #639C23 #239C98
square
#5C239C #9C2327 #639C23 #239C98
split-complementary
#5C239C #9C9823 #279C23
monochromatic
#210D38 #3F186A #5C239C #792ECE #995EDB

Accessibility & contrast

On white

9.65
#5C239C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C239C
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C239C#FFFFFF#000000##FFFFFF
##5C239C1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#4D435E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5c239c;
/* rgb */ color: rgb(92, 35, 156);
/* oklch */ color: oklch(41.1% 0.181 299.6);
Tailwind
colors: {
  custom: {
    50: '#9064ba',
    500: '#5c239c',
    950: '#000000',
  },
}
SCSS
$custom: #5c239c;
$custom-light: #9064ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5c239c",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 268.264,
    "s": 63.351,
    "l": 37.451
  },
  "oklch": {
    "l": 0.41116,
    "c": 0.18146,
    "h": 299.6
  },
  "luminance": 0.05878
}

Semantic roles & 50–950 ramp

primary
#5C239C
secondary
#90C05B
accent
#E64199
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5C239C

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

Preview Lab → · Contrast checker → · Palette generator →

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