#5C2D82#5C2D82

#5C2D82 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.3% C 0.140 H 306.6°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#5C2D82
RGBrgb(92, 45, 130)
HSLhsl(273, 49%, 34%)
HSVhsv(273, 65%, 51%)
CMYKcmyk(29.2%, 65.4%, 0%, 49%)
CIE-LABlab(28.81, 37.92, -39.63)
CIE-LCHlch(28.81, 54.85, 313.74°)
OKLaboklab(40.27% 0.0832 -0.1121)
OKLCHoklch(40.27% 0.14 306.6)
XYZxyz(9.3804, 5.7639, 21.7331)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2D82 #53822D
analogous
#322D82 #5C2D82 #822D7E
triadic
#5C2D82 #825C2D #2D825C
tetradic
#5C2D82 #82322D #53822D #2D7E82
square
#5C2D82 #82322D #53822D #2D7E82
split-complementary
#5C2D82 #7E822D #2D8232
monochromatic
#1C0E27 #3C1D55 #5C2D82 #7C3DAF #9A61C8

Accessibility & contrast

On white

9.75
#5C2D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5C2D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2D82
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2D82#FFFFFF#000000##FFFFFF
##5C2D821.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#1B4480
Tritanopia (blue-blind)
#563F53
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5c2d82;
/* rgb */ color: rgb(92, 45, 130);
/* oklch */ color: oklch(40.3% 0.140 306.6);
Tailwind
colors: {
  custom: {
    50: '#8d69a7',
    500: '#5c2d82',
    950: '#000000',
  },
}
SCSS
$custom: #5c2d82;
$custom-light: #8d69a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2d82",
  "rgb": {
    "r": 92,
    "g": 45,
    "b": 130
  },
  "hsl": {
    "h": 273.176,
    "s": 48.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.4027,
    "c": 0.13961,
    "h": 306.6
  },
  "luminance": 0.05764
}

Semantic roles & 50–950 ramp

primary
#5C2D82
secondary
#81AF5C
accent
#D8508D
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D060F
muted
#7D7A7F

Preview Lab

Preview with #5C2D82

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

Preview Lab → · Contrast checker → · Palette generator →

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