#5D127D#5D127D

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

Color values

HEX#5D127D
RGBrgb(93, 18, 125)
HSLhsl(282, 75%, 28%)
HSVhsv(282, 86%, 49%)
CMYKcmyk(25.6%, 85.6%, 0%, 51%)
CIE-LABlab(24.45, 48.63, -43.51)
CIE-LCHlch(24.45, 65.26, 318.18°)
OKLaboklab(37.09% 0.1132 -0.1233)
OKLCHoklch(37.09% 0.167 312.6)
XYZxyz(8.4315, 4.2407, 19.7724)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D127D #327D12
analogous
#27127D #5D127D #7D1267
triadic
#5D127D #7D5D12 #127D5D
tetradic
#5D127D #7D2712 #327D12 #12677D
square
#5D127D #7D2712 #327D12 #12677D
split-complementary
#5D127D #677D12 #127D27
monochromatic
#14041B #350A48 #5D127D #851AB2 #A929E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5D127D#FFFFFF#000000##FFFFFF
##5D127D1.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)
#003780
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#592E49
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d127d;
/* rgb */ color: rgb(93, 18, 125);
/* oklch */ color: oklch(37.1% 0.167 312.6);
Tailwind
colors: {
  custom: {
    50: '#8f5ca3',
    500: '#5d127d',
    950: '#000000',
  },
}
SCSS
$custom: #5d127d;
$custom-light: #8f5ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5d127d",
  "rgb": {
    "r": 93,
    "g": 18,
    "b": 125
  },
  "hsl": {
    "h": 282.056,
    "s": 74.825,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37085,
    "c": 0.1674,
    "h": 312.6
  },
  "luminance": 0.0424
}

Semantic roles & 50–950 ramp

primary
#5D127D
secondary
#5DB338
accent
#F1366E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5D127D

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

Preview Lab → · Contrast checker → · Palette generator →

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