#5E1687#5E1687

#5E1687 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.4% C 0.173 H 308.9°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#5E1687
RGBrgb(94, 22, 135)
HSLhsl(278, 72%, 31%)
HSVhsv(278, 84%, 53%)
CMYKcmyk(30.4%, 83.7%, 0%, 47.1%)
CIE-LABlab(25.87, 49.72, -47.50)
CIE-LCHlch(25.87, 68.76, 316.31°)
OKLaboklab(38.36% 0.109 -0.135)
OKLCHoklch(38.36% 0.174 308.9)
XYZxyz(9.2753, 4.7029, 23.3361)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1687 #3F8716
analogous
#251687 #5E1687 #871677
triadic
#5E1687 #875E16 #16875E
tetradic
#5E1687 #872516 #3F8716 #167787
square
#5E1687 #872516 #3F8716 #167787
split-complementary
#5E1687 #778716 #168725
monochromatic
#15051E #390D52 #5E1687 #831FBC #A239DF

Accessibility & contrast

On white

10.82
#5E1687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5E1687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1687
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1687#FFFFFF#000000##FFFFFF
##5E16871.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#583450
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1687;
/* rgb */ color: rgb(94, 22, 135);
/* oklch */ color: oklch(38.4% 0.173 308.9);
Tailwind
colors: {
  custom: {
    50: '#905eab',
    500: '#5e1687',
    950: '#000000',
  },
}
SCSS
$custom: #5e1687;
$custom-light: #905eab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1687",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 278.23,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38364,
    "c": 0.1735,
    "h": 308.9
  },
  "luminance": 0.04703
}

Semantic roles & 50–950 ramp

primary
#5E1687
secondary
#6BBB3E
accent
#EF397B
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1687

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

Preview Lab → · Contrast checker → · Palette generator →

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