#5D127F#5D127F

#5D127F is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.3% C 0.169 H 311.8°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#5D127F
RGBrgb(93, 18, 127)
HSLhsl(281, 75%, 28%)
HSVhsv(281, 86%, 50%)
CMYKcmyk(26.8%, 85.8%, 0%, 50.2%)
CIE-LABlab(24.62, 49.06, -44.51)
CIE-LCHlch(24.62, 66.24, 317.78°)
OKLaboklab(37.25% 0.1127 -0.1262)
OKLCHoklch(37.25% 0.169 311.8)
XYZxyz(8.5605, 4.2923, 20.4521)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D127F #347F12
analogous
#26127F #5D127F #7F126A
triadic
#5D127F #7F5D12 #127F5D
tetradic
#5D127F #7F2612 #347F12 #126A7F
square
#5D127F #7F2612 #347F12 #126A7F
split-complementary
#5D127F #6A7F12 #127F26
monochromatic
#14041B #360A49 #5D127F #841AB5 #A82BE1

Accessibility & contrast

On white

11.30
#5D127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5D127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D127F
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D127F#FFFFFF#000000##FFFFFF
##5D127F1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d127f;
/* rgb */ color: rgb(93, 18, 127);
/* oklch */ color: oklch(37.3% 0.169 311.8);
Tailwind
colors: {
  custom: {
    50: '#8f5ca5',
    500: '#5d127f',
    950: '#000000',
  },
}
SCSS
$custom: #5d127f;
$custom-light: #8f5ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d127f",
  "rgb": {
    "r": 93,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 281.284,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3725,
    "c": 0.16922,
    "h": 311.8
  },
  "luminance": 0.04292
}

Semantic roles & 50–950 ramp

primary
#5D127F
secondary
#5FB538
accent
#F23671
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5D127F

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

Preview Lab → · Contrast checker → · Palette generator →

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