#5E2D85#5E2D85

#5E2D85 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.144 H 306.7°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5E2D85
RGBrgb(94, 45, 133)
HSLhsl(273, 49%, 35%)
HSVhsv(273, 66%, 52%)
CMYKcmyk(29.3%, 66.2%, 0%, 47.8%)
CIE-LABlab(29.29, 39.16, -40.72)
CIE-LCHlch(29.29, 56.49, 313.88°)
OKLaboklab(40.74% 0.0859 -0.1152)
OKLCHoklch(40.74% 0.144 306.7)
XYZxyz(9.7872, 5.9500, 22.8186)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2D85 #54852D
analogous
#322D85 #5E2D85 #852D80
triadic
#5E2D85 #855E2D #2D855E
tetradic
#5E2D85 #85322D #54852D #2D8085
square
#5E2D85 #85322D #54852D #2D8085
split-complementary
#5E2D85 #80852D #2D8532
monochromatic
#1D0E2A #3E1E57 #5E2D85 #7E3CB3 #9C62CA

Accessibility & contrast

On white

9.59
#5E2D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5E2D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2D85
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2D85#FFFFFF#000000##FFFFFF
##5E2D851.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004388
Deuteranopia (green-blind)
#1A4583
Tritanopia (blue-blind)
#583F55
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2d85;
/* rgb */ color: rgb(94, 45, 133);
/* oklch */ color: oklch(40.7% 0.144 306.7);
Tailwind
colors: {
  custom: {
    50: '#8f69a9',
    500: '#5e2d85',
    950: '#000000',
  },
}
SCSS
$custom: #5e2d85;
$custom-light: #8f69a9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2d85",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 133
  },
  "hsl": {
    "h": 273.409,
    "s": 49.438,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4074,
    "c": 0.14369,
    "h": 306.7
  },
  "luminance": 0.0595
}

Semantic roles & 50–950 ramp

primary
#5E2D85
secondary
#82B05D
accent
#D94F8C
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2D85

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

Preview Lab → · Contrast checker → · Palette generator →

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