#5E2491#5E2491

#5E2491 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.169 H 303.9°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#5E2491
RGBrgb(94, 36, 145)
HSLhsl(272, 60%, 35%)
HSVhsv(272, 75%, 57%)
CMYKcmyk(35.2%, 75.2%, 0%, 43.1%)
CIE-LABlab(28.61, 46.55, -49.26)
CIE-LCHlch(28.61, 67.78, 313.38°)
OKLaboklab(40.54% 0.0942 -0.1403)
OKLCHoklch(40.54% 0.169 303.9)
XYZxyz(10.3566, 5.6858, 27.3344)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2491 #579124
analogous
#282491 #5E2491 #91248D
triadic
#5E2491 #915E24 #24915E
tetradic
#5E2491 #912824 #579124 #248D91
square
#5E2491 #912824 #579124 #248D91
split-complementary
#5E2491 #8D9124 #249128
monochromatic
#1E0C2F #3E1860 #5E2491 #7E30C2 #9C59D6

Accessibility & contrast

On white

9.83
#5E2491 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5E2491 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2491
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2491#FFFFFF#000000##FFFFFF
##5E24911.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#00438F
Tritanopia (blue-blind)
#543F59
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e2491;
/* rgb */ color: rgb(94, 36, 145);
/* oklch */ color: oklch(40.5% 0.169 303.9);
Tailwind
colors: {
  custom: {
    50: '#9165b2',
    500: '#5e2491',
    950: '#000000',
  },
}
SCSS
$custom: #5e2491;
$custom-light: #9165b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2491",
  "rgb": {
    "r": 94,
    "g": 36,
    "b": 145
  },
  "hsl": {
    "h": 271.927,
    "s": 60.221,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40539,
    "c": 0.16898,
    "h": 303.9
  },
  "luminance": 0.05686
}

Semantic roles & 50–950 ramp

primary
#5E2491
secondary
#85BA56
accent
#E3448F
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2491

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

Preview Lab → · Contrast checker → · Palette generator →

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