#5E1889#5E1889

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

Color values

HEX#5E1889
RGBrgb(94, 24, 137)
HSLhsl(277, 70%, 32%)
HSVhsv(277, 82%, 54%)
CMYKcmyk(31.4%, 82.5%, 0%, 46.3%)
CIE-LABlab(26.27, 49.49, -48.09)
CIE-LCHlch(26.27, 69.01, 315.82°)
OKLaboklab(38.7% 0.1069 -0.1368)
OKLCHoklch(38.7% 0.174 308)
XYZxyz(9.4571, 4.8392, 24.0979)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1889 #438918
analogous
#261889 #5E1889 #89187C
triadic
#5E1889 #895E18 #18895E
tetradic
#5E1889 #892618 #438918 #187C89
square
#5E1889 #892618 #438918 #187C89
split-complementary
#5E1889 #7C8918 #188926
monochromatic
#170621 #3A0F55 #5E1889 #8221BD #A13EDD

Accessibility & contrast

On white

10.67
#5E1889 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5E1889 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1889
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1889#FFFFFF#000000##FFFFFF
##5E18891.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.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: #5e1889;
/* rgb */ color: rgb(94, 24, 137);
/* oklch */ color: oklch(38.7% 0.174 308.0);
Tailwind
colors: {
  custom: {
    50: '#915fac',
    500: '#5e1889',
    950: '#000000',
  },
}
SCSS
$custom: #5e1889;
$custom-light: #915fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1889",
  "rgb": {
    "r": 94,
    "g": 24,
    "b": 137
  },
  "hsl": {
    "h": 277.168,
    "s": 70.186,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38696,
    "c": 0.17359,
    "h": 308
  },
  "luminance": 0.04839
}

Semantic roles & 50–950 ramp

primary
#5E1889
secondary
#70BD40
accent
#ED3B7F
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1889

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

Preview Lab → · Contrast checker → · Palette generator →

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