#5E1689#5E1689

#5E1689 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.175 H 308.2°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#5E1689
RGBrgb(94, 22, 137)
HSLhsl(278, 72%, 31%)
HSVhsv(278, 84%, 54%)
CMYKcmyk(31.4%, 83.9%, 0%, 46.3%)
CIE-LABlab(26.04, 50.16, -48.47)
CIE-LCHlch(26.04, 69.76, 315.98°)
OKLaboklab(38.53% 0.1084 -0.1379)
OKLCHoklch(38.53% 0.175 308.2)
XYZxyz(9.4174, 4.7598, 24.0847)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1689 #418916
analogous
#241689 #5E1689 #89167A
triadic
#5E1689 #895E16 #16895E
tetradic
#5E1689 #892416 #418916 #167A89
square
#5E1689 #892416 #418916 #167A89
split-complementary
#5E1689 #7A8916 #168924
monochromatic
#160520 #3A0E54 #5E1689 #821EBE #A23ADF

Accessibility & contrast

On white

10.76
#5E1689 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5E1689 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1689
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1689#FFFFFF#000000##FFFFFF
##5E16891.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#573551
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1689;
/* rgb */ color: rgb(94, 22, 137);
/* oklch */ color: oklch(38.5% 0.175 308.2);
Tailwind
colors: {
  custom: {
    50: '#915eac',
    500: '#5e1689',
    950: '#000000',
  },
}
SCSS
$custom: #5e1689;
$custom-light: #915eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1689",
  "rgb": {
    "r": 94,
    "g": 22,
    "b": 137
  },
  "hsl": {
    "h": 277.565,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38534,
    "c": 0.1754,
    "h": 308.2
  },
  "luminance": 0.0476
}

Semantic roles & 50–950 ramp

primary
#5E1689
secondary
#6DBD3E
accent
#EF397D
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1689

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

Preview Lab → · Contrast checker → · Palette generator →

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