#5C2183#5C2183

#5C2183 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.8% C 0.157 H 308.1°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#5C2183
RGBrgb(92, 33, 131)
HSLhsl(276, 60%, 32%)
HSVhsv(276, 75%, 51%)
CMYKcmyk(29.8%, 74.8%, 0%, 48.6%)
CIE-LABlab(26.74, 44.12, -43.59)
CIE-LCHlch(26.74, 62.02, 315.35°)
OKLaboklab(38.81% 0.0971 -0.1237)
OKLCHoklch(38.81% 0.157 308.1)
XYZxyz(9.0534, 5.0019, 21.9569)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2183 #488321
analogous
#2B2183 #5C2183 #832179
triadic
#5C2183 #835C21 #21835C
tetradic
#5C2183 #832B21 #488321 #217983
square
#5C2183 #832B21 #488321 #217983
split-complementary
#5C2183 #798321 #21832B
monochromatic
#170821 #3A1552 #5C2183 #7E2DB4 #9D4CD2

Accessibility & contrast

On white

10.50
#5C2183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C2183
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2183#FFFFFF#000000##FFFFFF
##5C21831.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D86
Deuteranopia (green-blind)
#024081
Tritanopia (blue-blind)
#563850
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5c2183;
/* rgb */ color: rgb(92, 33, 131);
/* oklch */ color: oklch(38.8% 0.157 308.1);
Tailwind
colors: {
  custom: {
    50: '#8e62a8',
    500: '#5c2183',
    950: '#000000',
  },
}
SCSS
$custom: #5c2183;
$custom-light: #8e62a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2183",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 276.122,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38811,
    "c": 0.15722,
    "h": 308.1
  },
  "luminance": 0.05002
}

Semantic roles & 50–950 ramp

primary
#5C2183
secondary
#75B54B
accent
#E34584
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5C2183

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

Preview Lab → · Contrast checker → · Palette generator →

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