#5C239A#5C239A

#5C239A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.9% C 0.179 H 300.1°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#5C239A
RGBrgb(92, 35, 154)
HSLhsl(269, 63%, 37%)
HSVhsv(269, 77%, 60%)
CMYKcmyk(40.3%, 77.3%, 0%, 39.6%)
CIE-LABlab(28.93, 48.86, -54.27)
CIE-LCHlch(28.93, 73.03, 312.00°)
OKLaboklab(40.94% 0.0901 -0.1551)
OKLCHoklch(40.94% 0.179 300.1)
XYZxyz(10.8459, 5.8104, 31.1157)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C239A #619A23
analogous
#23269A #5C239A #97239A
triadic
#5C239A #9A5C23 #239A5C
tetradic
#5C239A #9A2326 #619A23 #239A97
square
#5C239A #9A2326 #619A23 #239A97
split-complementary
#5C239A #9A9723 #269A23
monochromatic
#200C36 #3E1868 #5C239A #7A2ECC #995DDA

Accessibility & contrast

On white

9.71
#5C239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5C239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C239A
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C239A#FFFFFF#000000##FFFFFF
##5C239A1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004398
Tritanopia (blue-blind)
#4E425D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5c239a;
/* rgb */ color: rgb(92, 35, 154);
/* oklch */ color: oklch(40.9% 0.179 300.1);
Tailwind
colors: {
  custom: {
    50: '#9064b9',
    500: '#5c239a',
    950: '#000000',
  },
}
SCSS
$custom: #5c239a;
$custom-light: #9064b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c239a",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 268.739,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40941,
    "c": 0.17933,
    "h": 300.1
  },
  "luminance": 0.0581
}

Semantic roles & 50–950 ramp

primary
#5C239A
secondary
#8FBF5A
accent
#E64297
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C239A

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

Preview Lab → · Contrast checker → · Palette generator →

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