#5C127C#5C127C

#5C127C is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.166 H 312.4°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#5C127C
RGBrgb(92, 18, 124)
HSLhsl(282, 75%, 28%)
HSVhsv(282, 85%, 49%)
CMYKcmyk(25.8%, 85.5%, 0%, 51.4%)
CIE-LABlab(24.20, 48.24, -43.29)
CIE-LCHlch(24.20, 64.82, 318.10°)
OKLaboklab(36.85% 0.1121 -0.1227)
OKLCHoklch(36.85% 0.166 312.4)
XYZxyz(8.2674, 4.1634, 19.4330)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C127C #327C12
analogous
#27127C #5C127C #7C1267
triadic
#5C127C #7C5C12 #127C5C
tetradic
#5C127C #7C2712 #327C12 #12677C
square
#5C127C #7C2712 #327C12 #12677C
split-complementary
#5C127C #677C12 #127C27
monochromatic
#14041B #340A47 #5C127C #841AB1 #A929E0

Accessibility & contrast

On white

11.46
#5C127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5C127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C127C
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C127C#FFFFFF#000000##FFFFFF
##5C127C1.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#582E49
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c127c;
/* rgb */ color: rgb(92, 18, 124);
/* oklch */ color: oklch(36.9% 0.166 312.4);
Tailwind
colors: {
  custom: {
    50: '#8e5ba3',
    500: '#5c127c',
    950: '#000000',
  },
}
SCSS
$custom: #5c127c;
$custom-light: #8e5ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c127c",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 281.887,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.36854,
    "c": 0.16616,
    "h": 312.4
  },
  "luminance": 0.04163
}

Semantic roles & 50–950 ramp

primary
#5C127C
secondary
#5DB238
accent
#F1376F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5C127C

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

Preview Lab → · Contrast checker → · Palette generator →

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