#5D127E#5D127E

#5D127E is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.2% C 0.168 H 312.2°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#5D127E
RGBrgb(93, 18, 126)
HSLhsl(282, 75%, 28%)
HSVhsv(282, 86%, 49%)
CMYKcmyk(26.2%, 85.7%, 0%, 50.6%)
CIE-LABlab(24.53, 48.85, -44.01)
CIE-LCHlch(24.53, 65.75, 317.98°)
OKLaboklab(37.17% 0.113 -0.1248)
OKLCHoklch(37.17% 0.168 312.2)
XYZxyz(8.4957, 4.2664, 20.1106)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D127E #337E12
analogous
#27127E #5D127E #7E1269
triadic
#5D127E #7E5D12 #127E5D
tetradic
#5D127E #7E2712 #337E12 #12697E
square
#5D127E #7E2712 #337E12 #12697E
split-complementary
#5D127E #697E12 #127E27
monochromatic
#14041B #350A48 #5D127E #851AB4 #A92AE1

Accessibility & contrast

On white

11.33
#5D127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D127E
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D127E#FFFFFF#000000##FFFFFF
##5D127E1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#592E4A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d127e;
/* rgb */ color: rgb(93, 18, 126);
/* oklch */ color: oklch(37.2% 0.168 312.2);
Tailwind
colors: {
  custom: {
    50: '#8f5ca4',
    500: '#5d127e',
    950: '#000000',
  },
}
SCSS
$custom: #5d127e;
$custom-light: #8f5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d127e",
  "rgb": {
    "r": 93,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 281.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37167,
    "c": 0.16831,
    "h": 312.2
  },
  "luminance": 0.04266
}

Semantic roles & 50–950 ramp

primary
#5D127E
secondary
#5EB438
accent
#F2366F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5D127E

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

Preview Lab → · Contrast checker → · Palette generator →

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