#5C125A#5C125A

#5C125A is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.136 H 329.2°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#5C125A
RGBrgb(92, 18, 90)
HSLhsl(302, 67%, 22%)
HSVhsv(302, 80%, 36%)
CMYKcmyk(0%, 80.4%, 2.2%, 63.9%)
CIE-LABlab(21.75, 41.49, -25.13)
CIE-LCHlch(21.75, 48.51, 328.80°)
OKLaboklab(34.34% 0.1168 -0.0695)
OKLCHoklch(34.34% 0.136 329.2)
XYZxyz(6.4754, 3.4466, 9.9951)
Luminance0.0345 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C125A #125C14
analogous
#39125C #5C125A #5C1235
triadic
#5C125A #5A5C12 #125A5C
tetradic
#5C125A #5C3912 #125C14 #12355C
square
#5C125A #5C3912 #125C14 #12355C
split-complementary
#5C125A #355C12 #125C39
monochromatic
#1A0519 #290828 #5C125A #8F1C8C #C226BE

Accessibility & contrast

On white

12.43
#5C125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5C125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C125A
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C125A#FFFFFF#000000##FFFFFF
##5C125A1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062E5C
Deuteranopia (green-blind)
#283858
Tritanopia (blue-blind)
#5F1D35
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5c125a;
/* rgb */ color: rgb(92, 18, 90);
/* oklch */ color: oklch(34.3% 0.136 329.2);
Tailwind
colors: {
  custom: {
    50: '#8d5a89',
    500: '#5c125a',
    950: '#000000',
  },
}
SCSS
$custom: #5c125a;
$custom-light: #8d5a89;
$custom-dark: #000000;
JSON
{
  "hex": "#5c125a",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 301.622,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34343,
    "c": 0.13595,
    "h": 329.2
  },
  "luminance": 0.03446
}

Semantic roles & 50–950 ramp

primary
#5C125A
secondary
#359438
accent
#EA423E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040B
muted
#7D797C

Preview Lab

Preview with #5C125A

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

Preview Lab → · Contrast checker → · Palette generator →

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