#5E2991#5E2991

#5E2991 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.1% C 0.163 H 303.2°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#5E2991
RGBrgb(94, 41, 145)
HSLhsl(271, 56%, 36%)
HSVhsv(271, 72%, 57%)
CMYKcmyk(35.2%, 71.7%, 0%, 43.1%)
CIE-LABlab(29.44, 44.20, -47.91)
CIE-LCHlch(29.44, 65.19, 312.70°)
OKLaboklab(41.13% 0.0891 -0.1363)
OKLCHoklch(41.13% 0.163 303.2)
XYZxyz(10.5187, 6.0099, 27.3884)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2991 #5C9129
analogous
#2A2991 #5E2991 #912990
triadic
#5E2991 #915E29 #29915E
tetradic
#5E2991 #912A29 #5C9129 #299091
square
#5E2991 #912A29 #5C9129 #299091
split-complementary
#5E2991 #909129 #29912A
monochromatic
#200E32 #3F1C61 #5E2991 #7D36C1 #9B62D3

Accessibility & contrast

On white

9.54
#5E2991 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5E2991 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2991
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2991#FFFFFF#000000##FFFFFF
##5E29911.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.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: #5e2991;
/* rgb */ color: rgb(94, 41, 145);
/* oklch */ color: oklch(41.1% 0.163 303.2);
Tailwind
colors: {
  custom: {
    50: '#9067b2',
    500: '#5e2991',
    950: '#000000',
  },
}
SCSS
$custom: #5e2991;
$custom-light: #9067b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2991",
  "rgb": {
    "r": 94,
    "g": 41,
    "b": 145
  },
  "hsl": {
    "h": 270.577,
    "s": 55.914,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41129,
    "c": 0.16286,
    "h": 303.2
  },
  "luminance": 0.0601
}

Semantic roles & 50–950 ramp

primary
#5E2991
secondary
#8AB85D
accent
#DF4992
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2991

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

Preview Lab → · Contrast checker → · Palette generator →

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