#5E1989#5E1989

#5E1989 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.173 H 307.9°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#5E1989
RGBrgb(94, 25, 137)
HSLhsl(277, 69%, 32%)
HSVhsv(277, 82%, 54%)
CMYKcmyk(31.4%, 81.8%, 0%, 46.3%)
CIE-LABlab(26.39, 49.13, -47.90)
CIE-LCHlch(26.39, 68.61, 315.73°)
OKLaboklab(38.78% 0.1061 -0.1362)
OKLCHoklch(38.78% 0.173 307.9)
XYZxyz(9.4781, 4.8812, 24.1049)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1989 #448919
analogous
#261989 #5E1989 #89197C
triadic
#5E1989 #895E19 #19895E
tetradic
#5E1989 #892619 #448919 #197C89
square
#5E1989 #892619 #448919 #197C89
split-complementary
#5E1989 #7C8919 #198926
monochromatic
#170621 #3A1055 #5E1989 #8222BD #A040DC

Accessibility & contrast

On white

10.63
#5E1989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5E1989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1989
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1989#FFFFFF#000000##FFFFFF
##5E19891.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003F87
Tritanopia (blue-blind)
#573651
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1989;
/* rgb */ color: rgb(94, 25, 137);
/* oklch */ color: oklch(38.8% 0.173 307.9);
Tailwind
colors: {
  custom: {
    50: '#915fac',
    500: '#5e1989',
    950: '#000000',
  },
}
SCSS
$custom: #5e1989;
$custom-light: #915fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1989",
  "rgb": {
    "r": 94,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 276.964,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38781,
    "c": 0.17263,
    "h": 307.9
  },
  "luminance": 0.04881
}

Semantic roles & 50–950 ramp

primary
#5E1989
secondary
#71BC41
accent
#EC3C7F
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1989

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

Preview Lab → · Contrast checker → · Palette generator →

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