#5C2399#5C2399

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

Color values

HEX#5C2399
RGBrgb(92, 35, 153)
HSLhsl(269, 63%, 37%)
HSVhsv(269, 77%, 60%)
CMYKcmyk(39.9%, 77.1%, 0%, 40%)
CIE-LABlab(28.84, 48.61, -53.80)
CIE-LCHlch(28.84, 72.51, 312.10°)
OKLaboklab(40.86% 0.0903 -0.1537)
OKLCHoklch(40.86% 0.178 300.4)
XYZxyz(10.7630, 5.7772, 30.6789)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2399 #609923
analogous
#232599 #5C2399 #972399
triadic
#5C2399 #995C23 #23995C
tetradic
#5C2399 #992325 #609923 #239997
square
#5C2399 #992325 #609923 #239997
split-complementary
#5C2399 #999723 #259923
monochromatic
#200C35 #3E1867 #5C2399 #7A2ECB #995DDA

Accessibility & contrast

On white

9.74
#5C2399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2399
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2399#FFFFFF#000000##FFFFFF
##5C23991.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c2399;
/* rgb */ color: rgb(92, 35, 153);
/* oklch */ color: oklch(40.9% 0.178 300.4);
Tailwind
colors: {
  custom: {
    50: '#9064b8',
    500: '#5c2399',
    950: '#000000',
  },
}
SCSS
$custom: #5c2399;
$custom-light: #9064b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2399",
  "rgb": {
    "r": 92,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 268.983,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40855,
    "c": 0.17826,
    "h": 300.4
  },
  "luminance": 0.05777
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5C2399

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

Preview Lab → · Contrast checker → · Palette generator →

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