#5C1258#5C1258

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

Color values

HEX#5C1258
RGBrgb(92, 18, 88)
HSLhsl(303, 67%, 22%)
HSVhsv(303, 80%, 36%)
CMYKcmyk(0%, 80.4%, 4.3%, 63.9%)
CIE-LABlab(21.63, 41.14, -24.00)
CIE-LCHlch(21.63, 47.62, 329.75°)
OKLaboklab(34.22% 0.1168 -0.0662)
OKLCHoklch(34.22% 0.134 330.4)
XYZxyz(6.3914, 3.4130, 9.5528)
Luminance0.0341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C1258 #125C16
analogous
#3B125C #5C1258 #5C1233
triadic
#5C1258 #585C12 #12585C
tetradic
#5C1258 #5C3B12 #125C16 #12335C
square
#5C1258 #5C3B12 #125C16 #12335C
split-complementary
#5C1258 #335C12 #125C3B
monochromatic
#1A0518 #290827 #5C1258 #8F1C89 #C226BA

Accessibility & contrast

On white

12.48
#5C1258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C1258
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C1258#FFFFFF#000000##FFFFFF
##5C12581.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092D5A
Deuteranopia (green-blind)
#293756
Tritanopia (blue-blind)
#601C34
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5c1258;
/* rgb */ color: rgb(92, 18, 88);
/* oklch */ color: oklch(34.2% 0.134 330.4);
Tailwind
colors: {
  custom: {
    50: '#8d5987',
    500: '#5c1258',
    950: '#000000',
  },
}
SCSS
$custom: #5c1258;
$custom-light: #8d5987;
$custom-dark: #000000;
JSON
{
  "hex": "#5c1258",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 303.243,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34215,
    "c": 0.13429,
    "h": 330.4
  },
  "luminance": 0.03413
}

Semantic roles & 50–950 ramp

primary
#5C1258
secondary
#35943B
accent
#EA473E
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0D040B
muted
#7D797C

Preview Lab

Preview with #5C1258

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

Preview Lab → · Contrast checker → · Palette generator →

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