#5C126A#5C126A

#5C126A is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.4% C 0.150 H 320.5°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#5C126A
RGBrgb(92, 18, 106)
HSLhsl(290, 71%, 24%)
HSVhsv(290, 83%, 42%)
CMYKcmyk(13.2%, 83%, 0%, 58.4%)
CIE-LABlab(22.82, 44.52, -33.95)
CIE-LCHlch(22.82, 55.99, 322.67°)
OKLaboklab(35.45% 0.1157 -0.0953)
OKLCHoklch(35.45% 0.15 320.5)
XYZxyz(7.2311, 3.7489, 13.9756)
Luminance0.0375 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C126A #206A12
analogous
#30126A #5C126A #6A124C
triadic
#5C126A #6A5C12 #126A5C
tetradic
#5C126A #6A3012 #206A12 #124C6A
square
#5C126A #6A3012 #206A12 #124C6A
split-complementary
#5C126A #4C6A12 #126A30
monochromatic
#17041A #2F0936 #5C126A #891B9E #B724D3

Accessibility & contrast

On white

12.00
#5C126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5C126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C126A
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C126A#FFFFFF#000000##FFFFFF
##5C126A1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#1C3968
Tritanopia (blue-blind)
#5C253E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5c126a;
/* rgb */ color: rgb(92, 18, 106);
/* oklch */ color: oklch(35.4% 0.150 320.5);
Tailwind
colors: {
  custom: {
    50: '#8d5a95',
    500: '#5c126a',
    950: '#000000',
  },
}
SCSS
$custom: #5c126a;
$custom-light: #8d5a95;
$custom-dark: #000000;
JSON
{
  "hex": "#5c126a",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 290.455,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35449,
    "c": 0.14985,
    "h": 320.5
  },
  "luminance": 0.03749
}

Semantic roles & 50–950 ramp

primary
#5C126A
secondary
#47A236
accent
#EE3A57
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5C126A

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

Preview Lab → · Contrast checker → · Palette generator →

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