#5C2C9C#5C2C9C

#5C2C9C is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.2% C 0.171 H 298.3°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#5C2C9C
RGBrgb(92, 44, 156)
HSLhsl(266, 56%, 39%)
HSVhsv(266, 72%, 61%)
CMYKcmyk(41%, 71.8%, 0%, 38.8%)
CIE-LABlab(30.58, 45.16, -52.79)
CIE-LCHlch(30.58, 69.47, 310.54°)
OKLaboklab(42.16% 0.081 -0.1508)
OKLCHoklch(42.16% 0.171 298.3)
XYZxyz(11.3135, 6.4768, 32.1001)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2C9C #6C9C2C
analogous
#2C349C #5C2C9C #942C9C
triadic
#5C2C9C #9C5C2C #2C9C5C
tetradic
#5C2C9C #9C2C34 #6C9C2C #2C9C94
square
#5C2C9C #9C2C34 #6C9C2C #2C9C94
split-complementary
#5C2C9C #9C942C #349C2C
monochromatic
#24113D #401F6C #5C2C9C #793DC8 #9A6DD6

Accessibility & contrast

On white

9.15
#5C2C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5C2C9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2C9C
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2C9C#FFFFFF#000000##FFFFFF
##5C2C9C1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00479A
Tritanopia (blue-blind)
#4C4861
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5c2c9c;
/* rgb */ color: rgb(92, 44, 156);
/* oklch */ color: oklch(42.2% 0.171 298.3);
Tailwind
colors: {
  custom: {
    50: '#9069ba',
    500: '#5c2c9c',
    950: '#000000',
  },
}
SCSS
$custom: #5c2c9c;
$custom-light: #9069ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2c9c",
  "rgb": {
    "r": 92,
    "g": 44,
    "b": 156
  },
  "hsl": {
    "h": 265.714,
    "s": 56,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42163,
    "c": 0.17117,
    "h": 298.3
  },
  "luminance": 0.06477
}

Semantic roles & 50–950 ramp

primary
#5C2C9C
secondary
#98BD67
accent
#DF499F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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