#5C127F#5C127F

#5C127F is a dark, vivid purple. Relative luminance 0.042; OKLCH L 37.1% C 0.169 H 311.2°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#5C127F
RGBrgb(92, 18, 127)
HSLhsl(281, 75%, 28%)
HSVhsv(281, 86%, 50%)
CMYKcmyk(27.6%, 85.8%, 0%, 50.2%)
CIE-LABlab(24.45, 48.89, -44.79)
CIE-LCHlch(24.45, 66.30, 317.51°)
OKLaboklab(37.1% 0.1113 -0.1271)
OKLCHoklch(37.1% 0.169 311.2)
XYZxyz(8.4600, 4.2405, 20.4474)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C127F #357F12
analogous
#25127F #5C127F #7F126B
triadic
#5C127F #7F5C12 #127F5C
tetradic
#5C127F #7F2512 #357F12 #126B7F
square
#5C127F #7F2512 #357F12 #126B7F
split-complementary
#5C127F #6B7F12 #127F25
monochromatic
#13041B #350A49 #5C127F #831AB5 #A62BE1

Accessibility & contrast

On white

11.36
#5C127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5C127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C127F
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C127F#FFFFFF#000000##FFFFFF
##5C127F1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#572F4A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5c127f;
/* rgb */ color: rgb(92, 18, 127);
/* oklch */ color: oklch(37.1% 0.169 311.2);
Tailwind
colors: {
  custom: {
    50: '#8f5ca5',
    500: '#5c127f',
    950: '#000000',
  },
}
SCSS
$custom: #5c127f;
$custom-light: #8f5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#5c127f",
  "rgb": {
    "r": 92,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 280.734,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37102,
    "c": 0.16892,
    "h": 311.2
  },
  "luminance": 0.0424
}

Semantic roles & 50–950 ramp

primary
#5C127F
secondary
#60B538
accent
#F23672
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5C127F

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

Preview Lab → · Contrast checker → · Palette generator →

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