#5C125E#5C125E

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

Color values

HEX#5C125E
RGBrgb(92, 18, 94)
HSLhsl(298, 68%, 22%)
HSVhsv(298, 81%, 37%)
CMYKcmyk(2.1%, 80.9%, 0%, 63.1%)
CIE-LABlab(22.00, 42.22, -27.39)
CIE-LCHlch(22.00, 50.33, 327.03°)
OKLaboklab(34.61% 0.1168 -0.0761)
OKLCHoklch(34.61% 0.139 326.9)
XYZxyz(6.6502, 3.5165, 10.9160)
Luminance0.0352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C125E #145E12
analogous
#36125E #5C125E #5E123A
triadic
#5C125E #5E5C12 #125E5C
tetradic
#5C125E #5E3612 #145E12 #123A5E
square
#5C125E #5E3612 #145E12 #123A5E
split-complementary
#5C125E #3A5E12 #125E36
monochromatic
#19051A #2A082B #5C125E #8E1C91 #C126C5

Accessibility & contrast

On white

12.33
#5C125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5C125E
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C125E#FFFFFF#000000##FFFFFF
##5C125E1.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F60
Deuteranopia (green-blind)
#26385C
Tritanopia (blue-blind)
#5F1F37
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5c125e;
/* rgb */ color: rgb(92, 18, 94);
/* oklch */ color: oklch(34.6% 0.139 326.9);
Tailwind
colors: {
  custom: {
    50: '#8d5a8c',
    500: '#5c125e',
    950: '#000000',
  },
}
SCSS
$custom: #5c125e;
$custom-light: #8d5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5c125e",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 298.421,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34606,
    "c": 0.13935,
    "h": 326.9
  },
  "luminance": 0.03516
}

Semantic roles & 50–950 ramp

primary
#5C125E
secondary
#389635
accent
#EB3D42
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D040C
muted
#7D797D

Preview Lab

Preview with #5C125E

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

Preview Lab → · Contrast checker → · Palette generator →

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