#5C125C#5C125C

#5C125C is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.138 H 328.1°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#5C125C
RGBrgb(92, 18, 92)
HSLhsl(300, 67%, 22%)
HSVhsv(300, 80%, 36%)
CMYKcmyk(0%, 80.4%, 0%, 63.9%)
CIE-LABlab(21.88, 41.85, -26.26)
CIE-LCHlch(21.88, 49.41, 327.89°)
OKLaboklab(34.47% 0.1168 -0.0728)
OKLCHoklch(34.47% 0.138 328.1)
XYZxyz(6.5616, 3.4811, 10.4495)
Luminance0.0348 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C125C #125C12
analogous
#37125C #5C125C #5C1237
triadic
#5C125C #5C5C12 #125C5C
tetradic
#5C125C #5C3712 #125C12 #12375C
square
#5C125C #5C3712 #125C12 #12375C
split-complementary
#5C125C #375C12 #125C37
monochromatic
#1A051A #290829 #5C125C #8F1C8F #C226C2

Accessibility & contrast

On white

12.38
#5C125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5C125C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C125C
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C125C#FFFFFF#000000##FFFFFF
##5C125C1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022E5E
Deuteranopia (green-blind)
#27385A
Tritanopia (blue-blind)
#5F1E36
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5c125c;
/* rgb */ color: rgb(92, 18, 92);
/* oklch */ color: oklch(34.5% 0.138 328.1);
Tailwind
colors: {
  custom: {
    50: '#8d5a8a',
    500: '#5c125c',
    950: '#000000',
  },
}
SCSS
$custom: #5c125c;
$custom-light: #8d5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c125c",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 300,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34473,
    "c": 0.13764,
    "h": 328.1
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#5C125C
secondary
#359435
accent
#EA3E3E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5C125C

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

Preview Lab → · Contrast checker → · Palette generator →

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