#5E2C91#5E2C91

#5E2C91 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.159 H 302.7°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#5E2C91
RGBrgb(94, 44, 145)
HSLhsl(270, 53%, 37%)
HSVhsv(270, 70%, 57%)
CMYKcmyk(35.2%, 69.7%, 0%, 43.1%)
CIE-LABlab(29.97, 42.71, -47.04)
CIE-LCHlch(29.97, 63.53, 312.24°)
OKLaboklab(41.51% 0.0858 -0.1338)
OKLCHoklch(41.51% 0.159 302.7)
XYZxyz(10.6264, 6.2254, 27.4244)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2C91 #5F912C
analogous
#2C2D91 #5E2C91 #912C91
triadic
#5E2C91 #915E2C #2C915E
tetradic
#5E2C91 #912C2D #5F912C #2C9191
square
#5E2C91 #912C2D #5F912C #2C9191
split-complementary
#5E2C91 #91912C #2D912C
monochromatic
#211033 #401E62 #5E2C91 #7C3AC0 #9B67D1

Accessibility & contrast

On white

9.35
#5E2C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5E2C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2C91
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2C91#FFFFFF#000000##FFFFFF
##5E2C911.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#00468F
Tritanopia (blue-blind)
#54435B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e2c91;
/* rgb */ color: rgb(94, 44, 145);
/* oklch */ color: oklch(41.5% 0.159 302.7);
Tailwind
colors: {
  custom: {
    50: '#9069b2',
    500: '#5e2c91',
    950: '#000000',
  },
}
SCSS
$custom: #5e2c91;
$custom-light: #9069b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2c91",
  "rgb": {
    "r": 94,
    "g": 44,
    "b": 145
  },
  "hsl": {
    "h": 269.703,
    "s": 53.439,
    "l": 37.059
  },
  "oklch": {
    "l": 0.41512,
    "c": 0.15893,
    "h": 302.7
  },
  "luminance": 0.06225
}

Semantic roles & 50–950 ramp

primary
#5E2C91
secondary
#8DB762
accent
#DD4B95
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5E2C91

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

Preview Lab → · Contrast checker → · Palette generator →

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