#5D127C#5D127C

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

Color values

HEX#5D127C
RGBrgb(93, 18, 124)
HSLhsl(282, 75%, 28%)
HSVhsv(282, 85%, 49%)
CMYKcmyk(25%, 85.5%, 0%, 51.4%)
CIE-LABlab(24.37, 48.42, -43.01)
CIE-LCHlch(24.37, 64.76, 318.39°)
OKLaboklab(37% 0.1135 -0.1218)
OKLCHoklch(37% 0.166 313)
XYZxyz(8.3679, 4.2153, 19.4377)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D127C #317C12
analogous
#28127C #5D127C #7C1266
triadic
#5D127C #7C5D12 #127C5D
tetradic
#5D127C #7C2812 #317C12 #12667C
square
#5D127C #7C2812 #317C12 #12667C
split-complementary
#5D127C #667C12 #127C28
monochromatic
#14041B #350A47 #5D127C #851AB1 #AA29E0

Accessibility & contrast

On white

11.39
#5D127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5D127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D127C
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D127C#FFFFFF#000000##FFFFFF
##5D127C1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d127c;
/* rgb */ color: rgb(93, 18, 124);
/* oklch */ color: oklch(37.0% 0.166 313.0);
Tailwind
colors: {
  custom: {
    50: '#8f5ca3',
    500: '#5d127c',
    950: '#000000',
  },
}
SCSS
$custom: #5d127c;
$custom-light: #8f5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d127c",
  "rgb": {
    "r": 93,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 282.453,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37003,
    "c": 0.16648,
    "h": 313
  },
  "luminance": 0.04215
}

Semantic roles & 50–950 ramp

primary
#5D127C
secondary
#5CB238
accent
#F1376D
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5D127C

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

Preview Lab → · Contrast checker → · Palette generator →

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