#5C125D#5C125D

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

Color values

HEX#5C125D
RGBrgb(92, 18, 93)
HSLhsl(299, 68%, 22%)
HSVhsv(299, 81%, 36%)
CMYKcmyk(1.1%, 80.6%, 0%, 63.5%)
CIE-LABlab(21.94, 42.04, -26.83)
CIE-LCHlch(21.94, 49.87, 327.46°)
OKLaboklab(34.54% 0.1168 -0.0744)
OKLCHoklch(34.54% 0.139 327.5)
XYZxyz(6.6056, 3.4987, 10.6812)
Luminance0.0350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C125D #135D12
analogous
#37125D #5C125D #5D1239
triadic
#5C125D #5D5C12 #125D5C
tetradic
#5C125D #5D3712 #135D12 #12395D
square
#5C125D #5D3712 #135D12 #12395D
split-complementary
#5C125D #395D12 #125D37
monochromatic
#19051A #29082A #5C125D #8F1C90 #C126C4

Accessibility & contrast

On white

12.36
#5C125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C125D
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C125D#FFFFFF#000000##FFFFFF
##5C125D1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012F5F
Deuteranopia (green-blind)
#26385B
Tritanopia (blue-blind)
#5F1F37
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c125d;
/* rgb */ color: rgb(92, 18, 93);
/* oklch */ color: oklch(34.5% 0.139 327.5);
Tailwind
colors: {
  custom: {
    50: '#8d5a8b',
    500: '#5c125d',
    950: '#000000',
  },
}
SCSS
$custom: #5c125d;
$custom-light: #8d5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5c125d",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 299.2,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34539,
    "c": 0.1385,
    "h": 327.5
  },
  "luminance": 0.03498
}

Semantic roles & 50–950 ramp

primary
#5C125D
secondary
#379535
accent
#EA3D40
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5C125D

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

Preview Lab → · Contrast checker → · Palette generator →

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