#5C1988#5C1988

#5C1988 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.171 H 307.2°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#5C1988
RGBrgb(92, 25, 136)
HSLhsl(276, 69%, 32%)
HSVhsv(276, 82%, 53%)
CMYKcmyk(32.4%, 81.6%, 0%, 46.7%)
CIE-LABlab(26.01, 48.55, -47.92)
CIE-LCHlch(26.01, 68.21, 315.38°)
OKLaboklab(38.42% 0.1035 -0.1363)
OKLCHoklch(38.42% 0.171 307.2)
XYZxyz(9.2042, 4.7483, 23.7194)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1988 #458819
analogous
#251988 #5C1988 #88197D
triadic
#5C1988 #885C19 #19885C
tetradic
#5C1988 #882519 #458819 #197D88
square
#5C1988 #882519 #458819 #197D88
split-complementary
#5C1988 #7D8819 #198825
monochromatic
#160621 #390F54 #5C1988 #7F23BC #9E40DC

Accessibility & contrast

On white

10.77
#5C1988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5C1988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1988
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1988#FFFFFF#000000##FFFFFF
##5C19881.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#543651
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c1988;
/* rgb */ color: rgb(92, 25, 136);
/* oklch */ color: oklch(38.4% 0.171 307.2);
Tailwind
colors: {
  custom: {
    50: '#8f5fac',
    500: '#5c1988',
    950: '#000000',
  },
}
SCSS
$custom: #5c1988;
$custom-light: #8f5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1988",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 276.216,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.3842,
    "c": 0.17114,
    "h": 307.2
  },
  "luminance": 0.04748
}

Semantic roles & 50–950 ramp

primary
#5C1988
secondary
#72BB41
accent
#EC3C82
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1988

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

Preview Lab → · Contrast checker → · Palette generator →

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