#5C2D9C#5C2D9C

#5C2D9C is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.170 H 298.1°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#5C2D9C
RGBrgb(92, 45, 156)
HSLhsl(265, 55%, 39%)
HSVhsv(265, 71%, 61%)
CMYKcmyk(41%, 71.2%, 0%, 38.8%)
CIE-LABlab(30.76, 44.66, -52.50)
CIE-LCHlch(30.76, 68.92, 310.38°)
OKLaboklab(42.29% 0.08 -0.1499)
OKLCHoklch(42.29% 0.17 298.1)
XYZxyz(11.3512, 6.5522, 32.1127)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2D9C #6D9C2D
analogous
#2D369C #5C2D9C #942D9C
triadic
#5C2D9C #9C5C2D #2D9C5C
tetradic
#5C2D9C #9C2D36 #6D9C2D #2D9C94
square
#5C2D9C #9C2D36 #6D9C2D #2D9C94
split-complementary
#5C2D9C #9C942D #369C2D
monochromatic
#24123D #401F6D #5C2D9C #793FC8 #9A6ED5

Accessibility & contrast

On white

9.09
#5C2D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5C2D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2D9C
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2D9C#FFFFFF#000000##FFFFFF
##5C2D9C1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c2d9c;
/* rgb */ color: rgb(92, 45, 156);
/* oklch */ color: oklch(42.3% 0.170 298.1);
Tailwind
colors: {
  custom: {
    50: '#906aba',
    500: '#5c2d9c',
    950: '#000000',
  },
}
SCSS
$custom: #5c2d9c;
$custom-light: #906aba;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2d9c",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 265.405,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42291,
    "c": 0.16993,
    "h": 298.1
  },
  "luminance": 0.06552
}

Semantic roles & 50–950 ramp

primary
#5C2D9C
secondary
#99BC68
accent
#DF499F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5C2D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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