#5D107E#5D107E

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

Color values

HEX#5D107E
RGBrgb(93, 16, 126)
HSLhsl(282, 77%, 28%)
HSVhsv(282, 87%, 49%)
CMYKcmyk(26.2%, 87.3%, 0%, 50.6%)
CIE-LABlab(24.34, 49.43, -44.33)
CIE-LCHlch(24.34, 66.40, 318.11°)
OKLaboklab(37.03% 0.1144 -0.1257)
OKLCHoklch(37.03% 0.17 312.3)
XYZxyz(8.4647, 4.2043, 20.1002)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D107E #317E10
analogous
#26107E #5D107E #7E1068
triadic
#5D107E #7E5D10 #107E5D
tetradic
#5D107E #7E2610 #317E10 #10687E
square
#5D107E #7E2610 #317E10 #10687E
split-complementary
#5D107E #687E10 #107E26
monochromatic
#14031B #350948 #5D107E #8517B4 #AA25E3

Accessibility & contrast

On white

11.41
#5D107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D107E
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D107E#FFFFFF#000000##FFFFFF
##5D107E1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#592E49
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d107e;
/* rgb */ color: rgb(93, 16, 126);
/* oklch */ color: oklch(37.0% 0.170 312.3);
Tailwind
colors: {
  custom: {
    50: '#8f5ba4',
    500: '#5d107e',
    950: '#000000',
  },
}
SCSS
$custom: #5d107e;
$custom-light: #8f5ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#5d107e",
  "rgb": {
    "r": 93,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 282,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3703,
    "c": 0.16993,
    "h": 312.3
  },
  "luminance": 0.04204
}

Semantic roles & 50–950 ramp

primary
#5D107E
secondary
#5CB436
accent
#F4346D
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5D107E

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

Preview Lab → · Contrast checker → · Palette generator →

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