#5C2181#5C2181

#5C2181 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.155 H 308.9°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#5C2181
RGBrgb(92, 33, 129)
HSLhsl(277, 59%, 32%)
HSVhsv(277, 74%, 51%)
CMYKcmyk(28.7%, 74.4%, 0%, 49.4%)
CIE-LABlab(26.59, 43.65, -42.58)
CIE-LCHlch(26.59, 60.98, 315.71°)
OKLaboklab(38.65% 0.0974 -0.1207)
OKLCHoklch(38.65% 0.155 308.9)
XYZxyz(8.9191, 4.9482, 21.2499)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2181 #468121
analogous
#2C2181 #5C2181 #812176
triadic
#5C2181 #815C21 #21815C
tetradic
#5C2181 #812C21 #468121 #217681
square
#5C2181 #812C21 #468121 #217681
split-complementary
#5C2181 #768121 #21812C
monochromatic
#160820 #391550 #5C2181 #7F2DB2 #9E4BD1

Accessibility & contrast

On white

10.55
#5C2181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5C2181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2181
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2181#FFFFFF#000000##FFFFFF
##5C21811.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c2181;
/* rgb */ color: rgb(92, 33, 129);
/* oklch */ color: oklch(38.7% 0.155 308.9);
Tailwind
colors: {
  custom: {
    50: '#8e62a6',
    500: '#5c2181',
    950: '#000000',
  },
}
SCSS
$custom: #5c2181;
$custom-light: #8e62a6;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2181",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 276.875,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38654,
    "c": 0.15511,
    "h": 308.9
  },
  "luminance": 0.04948
}

Semantic roles & 50–950 ramp

primary
#5C2181
secondary
#73B44A
accent
#E24582
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D050F
muted
#7E7A7F

Preview Lab

Preview with #5C2181

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

Preview Lab → · Contrast checker → · Palette generator →

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