#5C1957#5C1957

#5C1957 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 34.8% C 0.125 H 331.1°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#5C1957
RGBrgb(92, 25, 87)
HSLhsl(304, 57%, 23%)
HSVhsv(304, 73%, 36%)
CMYKcmyk(0%, 72.8%, 5.4%, 63.9%)
CIE-LABlab(22.51, 38.28, -21.93)
CIE-LCHlch(22.51, 44.12, 330.19°)
OKLaboklab(34.83% 0.1091 -0.0603)
OKLCHoklch(34.83% 0.125 331.1)
XYZxyz(6.4815, 3.6592, 9.3799)
Luminance0.0366 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1957 #195C1E
analogous
#3F195C #5C1957 #5C1935
triadic
#5C1957 #575C19 #19575C
tetradic
#5C1957 #5C3F19 #195C1E #19355C
square
#5C1957 #5C3F19 #195C1E #19355C
split-complementary
#5C1957 #355C19 #195C3F
monochromatic
#180717 #2C0C29 #5C1957 #8C2685 #BC33B2

Accessibility & contrast

On white

12.13
#5C1957 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5C1957 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1957
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1957#FFFFFF#000000##FFFFFF
##5C19571.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143059
Deuteranopia (green-blind)
#2D3955
Tritanopia (blue-blind)
#602035
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5c1957;
/* rgb */ color: rgb(92, 25, 87);
/* oklch */ color: oklch(34.8% 0.125 331.1);
Tailwind
colors: {
  custom: {
    50: '#8d5c86',
    500: '#5c1957',
    950: '#000000',
  },
}
SCSS
$custom: #5c1957;
$custom-light: #8d5c86;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1957",
  "rgb": {
    "r": 92,
    "g": 25,
    "b": 87
  },
  "hsl": {
    "h": 304.478,
    "s": 57.265,
    "l": 22.941
  },
  "oklch": {
    "l": 0.34832,
    "c": 0.12463,
    "h": 331.1
  },
  "luminance": 0.03659
}

Semantic roles & 50–950 ramp

primary
#5C1957
secondary
#3F9245
accent
#E15347
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5C1957

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

Preview Lab → · Contrast checker → · Palette generator →

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