#5C2182#5C2182

#5C2182 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.156 H 308.5°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#5C2182
RGBrgb(92, 33, 130)
HSLhsl(276, 60%, 32%)
HSVhsv(276, 75%, 51%)
CMYKcmyk(29.2%, 74.6%, 0%, 49%)
CIE-LABlab(26.66, 43.88, -43.09)
CIE-LCHlch(26.66, 61.50, 315.52°)
OKLaboklab(38.73% 0.0972 -0.1222)
OKLCHoklch(38.73% 0.156 308.5)
XYZxyz(8.9859, 4.9749, 21.6016)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2182 #478221
analogous
#2C2182 #5C2182 #822178
triadic
#5C2182 #825C21 #21825C
tetradic
#5C2182 #822C21 #478221 #217882
square
#5C2182 #822C21 #478221 #217882
split-complementary
#5C2182 #788221 #21822C
monochromatic
#170820 #391551 #5C2182 #7F2DB3 #9D4CD2

Accessibility & contrast

On white

10.53
#5C2182 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5C2182 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2182
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2182#FFFFFF#000000##FFFFFF
##5C21821.0010.532.0010.53
#FFFFFF10.531.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D85
Deuteranopia (green-blind)
#054080
Tritanopia (blue-blind)
#56374F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5c2182;
/* rgb */ color: rgb(92, 33, 130);
/* oklch */ color: oklch(38.7% 0.156 308.5);
Tailwind
colors: {
  custom: {
    50: '#8e62a7',
    500: '#5c2182',
    950: '#000000',
  },
}
SCSS
$custom: #5c2182;
$custom-light: #8e62a7;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2182",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 130
  },
  "hsl": {
    "h": 276.495,
    "s": 59.509,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38732,
    "c": 0.15616,
    "h": 308.5
  },
  "luminance": 0.04975
}

Semantic roles & 50–950 ramp

primary
#5C2182
secondary
#74B44A
accent
#E34583
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5C2182

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

Preview Lab → · Contrast checker → · Palette generator →

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