#5C2185#5C2185

#5C2185 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.0% C 0.159 H 307.4°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#5C2185
RGBrgb(92, 33, 133)
HSLhsl(275, 60%, 33%)
HSVhsv(275, 75%, 52%)
CMYKcmyk(30.8%, 75.2%, 0%, 47.8%)
CIE-LABlab(26.90, 44.60, -44.59)
CIE-LCHlch(26.90, 63.07, 315.00°)
OKLaboklab(38.97% 0.0967 -0.1266)
OKLCHoklch(38.97% 0.159 307.4)
XYZxyz(9.1902, 5.0566, 22.6776)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2185 #4A8521
analogous
#2A2185 #5C2185 #85217C
triadic
#5C2185 #855C21 #21855C
tetradic
#5C2185 #852A21 #4A8521 #217C85
square
#5C2185 #852A21 #4A8521 #217C85
split-complementary
#5C2185 #7C8521 #21852A
monochromatic
#180923 #3A1554 #5C2185 #7E2DB6 #9C4DD3

Accessibility & contrast

On white

10.44
#5C2185 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5C2185 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2185
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2185#FFFFFF#000000##FFFFFF
##5C21851.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#004083
Tritanopia (blue-blind)
#553951
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c2185;
/* rgb */ color: rgb(92, 33, 133);
/* oklch */ color: oklch(39.0% 0.159 307.4);
Tailwind
colors: {
  custom: {
    50: '#8e62a9',
    500: '#5c2185',
    950: '#000000',
  },
}
SCSS
$custom: #5c2185;
$custom-light: #8e62a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2185",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 133
  },
  "hsl": {
    "h": 275.4,
    "s": 60.241,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3897,
    "c": 0.15933,
    "h": 307.4
  },
  "luminance": 0.05056
}

Semantic roles & 50–950 ramp

primary
#5C2185
secondary
#77B64C
accent
#E34486
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5C2185

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

Preview Lab → · Contrast checker → · Palette generator →

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