#5E107E#5E107E

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

Color values

HEX#5E107E
RGBrgb(94, 16, 126)
HSLhsl(283, 77%, 28%)
HSVhsv(283, 87%, 49%)
CMYKcmyk(25.4%, 87.3%, 0%, 50.6%)
CIE-LABlab(24.50, 49.60, -44.05)
CIE-LCHlch(24.50, 66.34, 318.39°)
OKLaboklab(37.18% 0.1158 -0.1248)
OKLCHoklch(37.18% 0.17 312.8)
XYZxyz(8.5666, 4.2569, 20.1050)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E107E #307E10
analogous
#27107E #5E107E #7E1067
triadic
#5E107E #7E5E10 #107E5E
tetradic
#5E107E #7E2710 #307E10 #10677E
square
#5E107E #7E2710 #307E10 #10677E
split-complementary
#5E107E #677E10 #107E27
monochromatic
#14031B #350948 #5E107E #8717B4 #AC25E3

Accessibility & contrast

On white

11.34
#5E107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E107E
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E107E#FFFFFF#000000##FFFFFF
##5E107E1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e107e;
/* rgb */ color: rgb(94, 16, 126);
/* oklch */ color: oklch(37.2% 0.170 312.8);
Tailwind
colors: {
  custom: {
    50: '#905ba4',
    500: '#5e107e',
    950: '#000000',
  },
}
SCSS
$custom: #5e107e;
$custom-light: #905ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e107e",
  "rgb": {
    "r": 94,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 282.545,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3718,
    "c": 0.17024,
    "h": 312.8
  },
  "luminance": 0.04257
}

Semantic roles & 50–950 ramp

primary
#5E107E
secondary
#5AB436
accent
#F4346C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5E107E

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

Preview Lab → · Contrast checker → · Palette generator →

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