#5E1789#5E1789

#5E1789 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.174 H 308.1°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#5E1789
RGBrgb(94, 23, 137)
HSLhsl(277, 71%, 31%)
HSVhsv(277, 83%, 54%)
CMYKcmyk(31.4%, 83.2%, 0%, 46.3%)
CIE-LABlab(26.15, 49.83, -48.29)
CIE-LCHlch(26.15, 69.39, 315.90°)
OKLaboklab(38.61% 0.1077 -0.1373)
OKLCHoklch(38.61% 0.175 308.1)
XYZxyz(9.4369, 4.7988, 24.0912)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1789 #428917
analogous
#251789 #5E1789 #89177B
triadic
#5E1789 #895E17 #17895E
tetradic
#5E1789 #892517 #428917 #177B89
square
#5E1789 #892517 #428917 #177B89
split-complementary
#5E1789 #7B8917 #178925
monochromatic
#160520 #3A0E55 #5E1789 #8220BD #A13CDE

Accessibility & contrast

On white

10.72
#5E1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5E1789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1789
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1789#FFFFFF#000000##FFFFFF
##5E17891.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1789;
/* rgb */ color: rgb(94, 23, 137);
/* oklch */ color: oklch(38.6% 0.174 308.1);
Tailwind
colors: {
  custom: {
    50: '#915eac',
    500: '#5e1789',
    950: '#000000',
  },
}
SCSS
$custom: #5e1789;
$custom-light: #915eac;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1789",
  "rgb": {
    "r": 94,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 277.368,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38613,
    "c": 0.1745,
    "h": 308.1
  },
  "luminance": 0.04799
}

Semantic roles & 50–950 ramp

primary
#5E1789
secondary
#6EBD3F
accent
#EE3A7E
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1789

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

Preview Lab → · Contrast checker → · Palette generator →

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