#5E2891#5E2891

#5E2891 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.164 H 303.3°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#5E2891
RGBrgb(94, 40, 145)
HSLhsl(271, 57%, 36%)
HSVhsv(271, 72%, 57%)
CMYKcmyk(35.2%, 72.4%, 0%, 43.1%)
CIE-LABlab(29.26, 44.69, -48.19)
CIE-LCHlch(29.26, 65.72, 312.84°)
OKLaboklab(41.01% 0.0901 -0.1372)
OKLCHoklch(41.01% 0.164 303.3)
XYZxyz(10.4845, 5.9416, 27.3771)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2891 #5B9128
analogous
#2A2891 #5E2891 #912890
triadic
#5E2891 #915E28 #28915E
tetradic
#5E2891 #912A28 #5B9128 #289091
square
#5E2891 #912A28 #5B9128 #289091
split-complementary
#5E2891 #909128 #28912A
monochromatic
#200E31 #3F1B61 #5E2891 #7D35C1 #9B60D3

Accessibility & contrast

On white

9.60
#5E2891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5E2891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2891
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2891#FFFFFF#000000##FFFFFF
##5E28911.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004494
Deuteranopia (green-blind)
#00458F
Tritanopia (blue-blind)
#54415A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2891;
/* rgb */ color: rgb(94, 40, 145);
/* oklch */ color: oklch(41.0% 0.164 303.3);
Tailwind
colors: {
  custom: {
    50: '#9067b2',
    500: '#5e2891',
    950: '#000000',
  },
}
SCSS
$custom: #5e2891;
$custom-light: #9067b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2891",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 145
  },
  "hsl": {
    "h": 270.857,
    "s": 56.757,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41006,
    "c": 0.16412,
    "h": 303.3
  },
  "luminance": 0.05942
}

Semantic roles & 50–950 ramp

primary
#5E2891
secondary
#89B95C
accent
#E04892
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2891

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

Preview Lab → · Contrast checker → · Palette generator →

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