#5C2186#5C2186

#5C2186 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.160 H 307.0°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#5C2186
RGBrgb(92, 33, 134)
HSLhsl(275, 60%, 33%)
HSVhsv(275, 75%, 53%)
CMYKcmyk(31.3%, 75.4%, 0%, 47.5%)
CIE-LABlab(26.97, 44.83, -45.09)
CIE-LCHlch(26.97, 63.59, 314.84°)
OKLaboklab(39.05% 0.0965 -0.1281)
OKLCHoklch(39.05% 0.16 307)
XYZxyz(9.2596, 5.0844, 23.0432)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2186 #4B8621
analogous
#2A2186 #5C2186 #86217D
triadic
#5C2186 #865C21 #21865C
tetradic
#5C2186 #862A21 #4B8621 #217D86
square
#5C2186 #862A21 #4B8621 #217D86
split-complementary
#5C2186 #7D8621 #21862A
monochromatic
#190924 #3A1555 #5C2186 #7E2DB7 #9C4ED3

Accessibility & contrast

On white

10.41
#5C2186 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5C2186 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C2186
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C2186#FFFFFF#000000##FFFFFF
##5C21861.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E89
Deuteranopia (green-blind)
#004084
Tritanopia (blue-blind)
#553952
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c2186;
/* rgb */ color: rgb(92, 33, 134);
/* oklch */ color: oklch(39.1% 0.160 307.0);
Tailwind
colors: {
  custom: {
    50: '#8e62aa',
    500: '#5c2186',
    950: '#000000',
  },
}
SCSS
$custom: #5c2186;
$custom-light: #8e62aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2186",
  "rgb": {
    "r": 92,
    "g": 33,
    "b": 134
  },
  "hsl": {
    "h": 275.05,
    "s": 60.479,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3905,
    "c": 0.16038,
    "h": 307
  },
  "luminance": 0.05084
}

Semantic roles & 50–950 ramp

primary
#5C2186
secondary
#78B74C
accent
#E44486
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5C2186

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

Preview Lab → · Contrast checker → · Palette generator →

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