#5C1257#5C1257

#5C1257 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.133 H 331.1°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#5C1257
RGBrgb(92, 18, 87)
HSLhsl(304, 67%, 22%)
HSVhsv(304, 80%, 36%)
CMYKcmyk(0%, 80.4%, 5.4%, 63.9%)
CIE-LABlab(21.57, 40.96, -23.42)
CIE-LCHlch(21.57, 47.18, 330.24°)
OKLaboklab(34.15% 0.1168 -0.0646)
OKLCHoklch(34.15% 0.133 331.1)
XYZxyz(6.3502, 3.3966, 9.3361)
Luminance0.0340 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1257 #125C17
analogous
#3C125C #5C1257 #5C1232
triadic
#5C1257 #575C12 #12575C
tetradic
#5C1257 #5C3C12 #125C17 #12325C
square
#5C1257 #5C3C12 #125C17 #12325C
split-complementary
#5C1257 #325C12 #125C3C
monochromatic
#1A0518 #290827 #5C1257 #8F1C87 #C226B8

Accessibility & contrast

On white

12.51
#5C1257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5C1257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C1257
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1257#FFFFFF#000000##FFFFFF
##5C12571.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2D59
Deuteranopia (green-blind)
#2A3755
Tritanopia (blue-blind)
#601C33
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5c1257;
/* rgb */ color: rgb(92, 18, 87);
/* oklch */ color: oklch(34.2% 0.133 331.1);
Tailwind
colors: {
  custom: {
    50: '#8d5986',
    500: '#5c1257',
    950: '#000000',
  },
}
SCSS
$custom: #5c1257;
$custom-light: #8d5986;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1257",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 304.054,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34152,
    "c": 0.13346,
    "h": 331.1
  },
  "luminance": 0.03396
}

Semantic roles & 50–950 ramp

primary
#5C1257
secondary
#35943C
accent
#EA493E
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5C1257

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

Preview Lab → · Contrast checker → · Palette generator →

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