#5D107F#5D107F

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

Color values

HEX#5D107F
RGBrgb(93, 16, 127)
HSLhsl(282, 78%, 28%)
HSVhsv(282, 87%, 50%)
CMYKcmyk(26.8%, 87.4%, 0%, 50.2%)
CIE-LABlab(24.42, 49.64, -44.83)
CIE-LCHlch(24.42, 66.89, 317.91°)
OKLaboklab(37.11% 0.1141 -0.1272)
OKLCHoklch(37.11% 0.171 311.9)
XYZxyz(8.5295, 4.2303, 20.4418)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D107F #327F10
analogous
#26107F #5D107F #7F1069
triadic
#5D107F #7F5D10 #107F5D
tetradic
#5D107F #7F2610 #327F10 #10697F
square
#5D107F #7F2610 #327F10 #10697F
split-complementary
#5D107F #697F10 #107F26
monochromatic
#14031B #350949 #5D107F #8517B5 #A926E4

Accessibility & contrast

On white

11.38
#5D107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D107F
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D107F#FFFFFF#000000##FFFFFF
##5D107F1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d107f;
/* rgb */ color: rgb(93, 16, 127);
/* oklch */ color: oklch(37.1% 0.171 311.9);
Tailwind
colors: {
  custom: {
    50: '#8f5ba5',
    500: '#5d107f',
    950: '#000000',
  },
}
SCSS
$custom: #5d107f;
$custom-light: #8f5ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#5d107f",
  "rgb": {
    "r": 93,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 281.622,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37113,
    "c": 0.17083,
    "h": 311.9
  },
  "luminance": 0.0423
}

Semantic roles & 50–950 ramp

primary
#5D107F
secondary
#5DB536
accent
#F4346F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5D107F

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

Preview Lab → · Contrast checker → · Palette generator →

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