#5C1958#5C1958

#5C1958 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 34.9% C 0.126 H 330.4°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#5C1958
RGBrgb(92, 25, 88)
HSLhsl(304, 57%, 23%)
HSVhsv(304, 73%, 36%)
CMYKcmyk(0%, 72.8%, 4.3%, 63.9%)
CIE-LABlab(22.57, 38.46, -22.51)
CIE-LCHlch(22.57, 44.56, 329.66°)
OKLaboklab(34.89% 0.1091 -0.062)
OKLCHoklch(34.89% 0.126 330.4)
XYZxyz(6.5227, 3.6756, 9.5966)
Luminance0.0367 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1958 #195C1D
analogous
#3E195C #5C1958 #5C1936
triadic
#5C1958 #585C19 #19585C
tetradic
#5C1958 #5C3E19 #195C1D #19365C
square
#5C1958 #5C3E19 #195C1D #19365C
split-complementary
#5C1958 #365C19 #195C3E
monochromatic
#180717 #2C0C2A #5C1958 #8C2686 #BC33B4

Accessibility & contrast

On white

12.10
#5C1958 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5C1958 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1958
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1958#FFFFFF#000000##FFFFFF
##5C19581.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13305A
Deuteranopia (green-blind)
#2C3956
Tritanopia (blue-blind)
#602136
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5c1958;
/* rgb */ color: rgb(92, 25, 88);
/* oklch */ color: oklch(34.9% 0.126 330.4);
Tailwind
colors: {
  custom: {
    50: '#8d5c87',
    500: '#5c1958',
    950: '#000000',
  },
}
SCSS
$custom: #5c1958;
$custom-light: #8d5c87;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1958",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 88
  },
  "hsl": {
    "h": 303.582,
    "s": 57.265,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34892,
    "c": 0.1255,
    "h": 330.4
  },
  "luminance": 0.03675
}

Semantic roles & 50–950 ramp

primary
#5C1958
secondary
#3F9244
accent
#E15047
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5C1958

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

Preview Lab → · Contrast checker → · Palette generator →

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