#5C2C9A#5C2C9A

#5C2C9A is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.169 H 298.8°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#5C2C9A
RGBrgb(92, 44, 154)
HSLhsl(266, 56%, 39%)
HSVhsv(266, 71%, 60%)
CMYKcmyk(40.3%, 71.4%, 0%, 39.6%)
CIE-LABlab(30.42, 44.63, -51.84)
CIE-LCHlch(30.42, 68.40, 310.73°)
OKLaboklab(42% 0.0814 -0.148)
OKLCHoklch(42% 0.169 298.8)
XYZxyz(11.1456, 6.4096, 31.2156)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2C9A #6A9A2C
analogous
#2C339A #5C2C9A #932C9A
triadic
#5C2C9A #9A5C2C #2C9A5C
tetradic
#5C2C9A #9A2C33 #6A9A2C #2C9A93
square
#5C2C9A #9A2C33 #6A9A2C #2C9A93
split-complementary
#5C2C9A #9A932C #339A2C
monochromatic
#23113B #401E6A #5C2C9A #793CC7 #996CD5

Accessibility & contrast

On white

9.20
#5C2C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#5C2C9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2C9A
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2C9A#FFFFFF#000000##FFFFFF
##5C2C9A1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489D
Deuteranopia (green-blind)
#004798
Tritanopia (blue-blind)
#4D4760
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5c2c9a;
/* rgb */ color: rgb(92, 44, 154);
/* oklch */ color: oklch(42.0% 0.169 298.8);
Tailwind
colors: {
  custom: {
    50: '#9069b9',
    500: '#5c2c9a',
    950: '#000000',
  },
}
SCSS
$custom: #5c2c9a;
$custom-light: #9069b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2c9a",
  "rgb": {
    "r": 92,
    "g": 44,
    "b": 154
  },
  "hsl": {
    "h": 266.182,
    "s": 55.556,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41997,
    "c": 0.16889,
    "h": 298.8
  },
  "luminance": 0.0641
}

Semantic roles & 50–950 ramp

primary
#5C2C9A
secondary
#96BC66
accent
#DF499D
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5C2C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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