#5C2087#5C2087

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

Color values

HEX#5C2087
RGBrgb(92, 32, 135)
HSLhsl(275, 62%, 33%)
HSVhsv(275, 76%, 53%)
CMYKcmyk(31.9%, 76.3%, 0%, 47.1%)
CIE-LABlab(26.90, 45.51, -45.84)
CIE-LCHlch(26.90, 64.60, 314.80°)
OKLaboklab(39.02% 0.0973 -0.1303)
OKLCHoklch(39.02% 0.163 306.8)
XYZxyz(9.3024, 5.0577, 23.4032)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C2087 #4B8720
analogous
#282087 #5C2087 #87207F
triadic
#5C2087 #875C20 #20875C
tetradic
#5C2087 #872820 #4B8720 #207F87
square
#5C2087 #872820 #4B8720 #207F87
split-complementary
#5C2087 #7F8720 #208728
monochromatic
#190924 #3A1456 #5C2087 #7E2CB8 #9C4DD5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5C2087#FFFFFF#000000##FFFFFF
##5C20871.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)
#003E8A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#553952
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5c2087;
/* rgb */ color: rgb(92, 32, 135);
/* oklch */ color: oklch(39.0% 0.163 306.8);
Tailwind
colors: {
  custom: {
    50: '#8f62ab',
    500: '#5c2087',
    950: '#000000',
  },
}
SCSS
$custom: #5c2087;
$custom-light: #8f62ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5c2087",
  "rgb": {
    "r": 92,
    "g": 32,
    "b": 135
  },
  "hsl": {
    "h": 274.951,
    "s": 61.677,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39022,
    "c": 0.16261,
    "h": 306.8
  },
  "luminance": 0.05058
}

Semantic roles & 50–950 ramp

primary
#5C2087
secondary
#78B84B
accent
#E54387
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5C2087

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

Preview Lab → · Contrast checker → · Palette generator →

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