#5C1989#5C1989

#5C1989 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.172 H 306.8°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#5C1989
RGBrgb(92, 25, 137)
HSLhsl(276, 69%, 32%)
HSVhsv(276, 82%, 54%)
CMYKcmyk(32.8%, 81.8%, 0%, 46.3%)
CIE-LABlab(26.09, 48.78, -48.41)
CIE-LCHlch(26.09, 68.72, 315.22°)
OKLaboklab(38.51% 0.1032 -0.1378)
OKLCHoklch(38.51% 0.172 306.8)
XYZxyz(9.2756, 4.7768, 24.0954)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1989 #468919
analogous
#241989 #5C1989 #89197E
triadic
#5C1989 #895C19 #19895C
tetradic
#5C1989 #892419 #468919 #197E89
square
#5C1989 #892419 #468919 #197E89
split-complementary
#5C1989 #7E8919 #198924
monochromatic
#160621 #391055 #5C1989 #7F22BD #9E40DC

Accessibility & contrast

On white

10.74
#5C1989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5C1989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1989
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1989#FFFFFF#000000##FFFFFF
##5C19891.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#543751
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5c1989;
/* rgb */ color: rgb(92, 25, 137);
/* oklch */ color: oklch(38.5% 0.172 306.8);
Tailwind
colors: {
  custom: {
    50: '#8f5fac',
    500: '#5c1989',
    950: '#000000',
  },
}
SCSS
$custom: #5c1989;
$custom-light: #8f5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1989",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 275.893,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38505,
    "c": 0.17212,
    "h": 306.8
  },
  "luminance": 0.04777
}

Semantic roles & 50–950 ramp

primary
#5C1989
secondary
#73BC41
accent
#EC3C83
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5C1989

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

Preview Lab → · Contrast checker → · Palette generator →

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