#5C125B#5C125B

#5C125B is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.137 H 328.7°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#5C125B
RGBrgb(92, 18, 91)
HSLhsl(301, 67%, 22%)
HSVhsv(301, 80%, 36%)
CMYKcmyk(0%, 80.4%, 1.1%, 63.9%)
CIE-LABlab(21.81, 41.67, -25.70)
CIE-LCHlch(21.81, 48.96, 328.34°)
OKLaboklab(34.41% 0.1168 -0.0712)
OKLCHoklch(34.41% 0.137 328.7)
XYZxyz(6.5182, 3.4637, 10.2208)
Luminance0.0346 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C125B #125C13
analogous
#38125C #5C125B #5C1236
triadic
#5C125B #5B5C12 #125B5C
tetradic
#5C125B #5C3812 #125C13 #12365C
square
#5C125B #5C3812 #125C13 #12365C
split-complementary
#5C125B #365C12 #125C38
monochromatic
#1A0519 #290828 #5C125B #8F1C8E #C226C0

Accessibility & contrast

On white

12.41
#5C125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C125B
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C125B#FFFFFF#000000##FFFFFF
##5C125B1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042E5D
Deuteranopia (green-blind)
#273859
Tritanopia (blue-blind)
#5F1E36
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5c125b;
/* rgb */ color: rgb(92, 18, 91);
/* oklch */ color: oklch(34.4% 0.137 328.7);
Tailwind
colors: {
  custom: {
    50: '#8d5a8a',
    500: '#5c125b',
    950: '#000000',
  },
}
SCSS
$custom: #5c125b;
$custom-light: #8d5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5c125b",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 300.811,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34408,
    "c": 0.1368,
    "h": 328.7
  },
  "luminance": 0.03463
}

Semantic roles & 50–950 ramp

primary
#5C125B
secondary
#359437
accent
#EA403E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040B
muted
#7D797C

Preview Lab

Preview with #5C125B

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

Preview Lab → · Contrast checker → · Palette generator →

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