#5E2291#5E2291

#5E2291 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.171 H 304.1°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#5E2291
RGBrgb(94, 34, 145)
HSLhsl(272, 62%, 35%)
HSVhsv(272, 77%, 57%)
CMYKcmyk(35.2%, 76.6%, 0%, 43.1%)
CIE-LABlab(28.30, 47.43, -49.77)
CIE-LCHlch(28.30, 68.75, 313.63°)
OKLaboklab(40.32% 0.0962 -0.1417)
OKLCHoklch(40.32% 0.171 304.1)
XYZxyz(10.2978, 5.5681, 27.3148)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2291 #559122
analogous
#262291 #5E2291 #91228D
triadic
#5E2291 #915E22 #22915E
tetradic
#5E2291 #912622 #559122 #228D91
square
#5E2291 #912622 #559122 #228D91
split-complementary
#5E2291 #8D9122 #229126
monochromatic
#1E0B2E #3E165F #5E2291 #7E2EC3 #9C56D7

Accessibility & contrast

On white

9.94
#5E2291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#5E2291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2291
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2291#FFFFFF#000000##FFFFFF
##5E22911.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e2291;
/* rgb */ color: rgb(94, 34, 145);
/* oklch */ color: oklch(40.3% 0.171 304.1);
Tailwind
colors: {
  custom: {
    50: '#9164b2',
    500: '#5e2291',
    950: '#000000',
  },
}
SCSS
$custom: #5e2291;
$custom-light: #9164b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2291",
  "rgb": {
    "r": 94,
    "g": 34,
    "b": 145
  },
  "hsl": {
    "h": 272.432,
    "s": 62.011,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40321,
    "c": 0.17128,
    "h": 304.1
  },
  "luminance": 0.05568
}

Semantic roles & 50–950 ramp

primary
#5E2291
secondary
#83BB53
accent
#E5438D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2291

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

Preview Lab → · Contrast checker → · Palette generator →

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