#5C1954#5C1954

#5C1954 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.122 H 333.0°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#5C1954
RGBrgb(92, 25, 84)
HSLhsl(307, 57%, 23%)
HSVhsv(307, 73%, 36%)
CMYKcmyk(0%, 72.8%, 8.7%, 63.9%)
CIE-LABlab(22.34, 37.74, -20.19)
CIE-LCHlch(22.34, 42.80, 331.85°)
OKLaboklab(34.65% 0.1088 -0.0553)
OKLCHoklch(34.65% 0.122 333)
XYZxyz(6.3615, 3.6112, 8.7478)
Luminance0.0361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1954 #195C21
analogous
#42195C #5C1954 #5C1932
triadic
#5C1954 #545C19 #19545C
tetradic
#5C1954 #5C4219 #195C21 #19325C
square
#5C1954 #5C4219 #195C21 #19325C
split-complementary
#5C1954 #325C19 #195C42
monochromatic
#180716 #2C0C28 #5C1954 #8C2680 #BC33AC

Accessibility & contrast

On white

12.19
#5C1954 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5C1954 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1954
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1954#FFFFFF#000000##FFFFFF
##5C19541.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172F56
Deuteranopia (green-blind)
#2E3952
Tritanopia (blue-blind)
#601F34
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c1954;
/* rgb */ color: rgb(92, 25, 84);
/* oklch */ color: oklch(34.7% 0.122 333.0);
Tailwind
colors: {
  custom: {
    50: '#8d5c84',
    500: '#5c1954',
    950: '#000000',
  },
}
SCSS
$custom: #5c1954;
$custom-light: #8d5c84;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1954",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 84
  },
  "hsl": {
    "h": 307.164,
    "s": 57.265,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34654,
    "c": 0.12205,
    "h": 333
  },
  "luminance": 0.03611
}

Semantic roles & 50–950 ramp

primary
#5C1954
secondary
#3F9249
accent
#E15A47
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5C1954

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

Preview Lab → · Contrast checker → · Palette generator →

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