#5E2391#5E2391

#5E2391 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.170 H 304.0°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#5E2391
RGBrgb(94, 35, 145)
HSLhsl(272, 61%, 35%)
HSVhsv(272, 76%, 57%)
CMYKcmyk(35.2%, 75.9%, 0%, 43.1%)
CIE-LABlab(28.45, 47.00, -49.52)
CIE-LCHlch(28.45, 68.27, 313.50°)
OKLaboklab(40.43% 0.0952 -0.141)
OKLCHoklch(40.43% 0.17 304)
XYZxyz(10.3268, 5.6261, 27.3245)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2391 #569123
analogous
#272391 #5E2391 #91238D
triadic
#5E2391 #915E23 #23915E
tetradic
#5E2391 #912723 #569123 #238D91
square
#5E2391 #912723 #569123 #238D91
split-complementary
#5E2391 #8D9123 #239127
monochromatic
#1E0B2E #3E1760 #5E2391 #7E2FC2 #9C58D7

Accessibility & contrast

On white

9.88
#5E2391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5E2391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2391
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2391#FFFFFF#000000##FFFFFF
##5E23911.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e2391;
/* rgb */ color: rgb(94, 35, 145);
/* oklch */ color: oklch(40.4% 0.170 304.0);
Tailwind
colors: {
  custom: {
    50: '#9164b2',
    500: '#5e2391',
    950: '#000000',
  },
}
SCSS
$custom: #5e2391;
$custom-light: #9164b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2391",
  "rgb": {
    "r": 94,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 272.182,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40429,
    "c": 0.17014,
    "h": 304
  },
  "luminance": 0.05626
}

Semantic roles & 50–950 ramp

primary
#5E2391
secondary
#84BB55
accent
#E4448E
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2391

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

Preview Lab → · Contrast checker → · Palette generator →

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