#5E2D89#5E2D89

#5E2D89 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.0% C 0.148 H 305.2°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5E2D89
RGBrgb(94, 45, 137)
HSLhsl(272, 51%, 36%)
HSVhsv(272, 67%, 54%)
CMYKcmyk(31.4%, 67.2%, 0%, 46.3%)
CIE-LABlab(29.57, 40.16, -42.75)
CIE-LCHlch(29.57, 58.65, 313.21°)
OKLaboklab(41.04% 0.0855 -0.1212)
OKLCHoklch(41.04% 0.148 305.2)
XYZxyz(10.0688, 6.0627, 24.3018)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2D89 #58892D
analogous
#302D89 #5E2D89 #892D86
triadic
#5E2D89 #895E2D #2D895E
tetradic
#5E2D89 #89302D #58892D #2D8689
square
#5E2D89 #89302D #58892D #2D8689
split-complementary
#5E2D89 #86892D #2D8930
monochromatic
#1F0F2D #3E1E5B #5E2D89 #7E3CB7 #9C64CC

Accessibility & contrast

On white

9.49
#5E2D89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5E2D89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2D89
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2D89#FFFFFF#000000##FFFFFF
##5E2D891.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448C
Deuteranopia (green-blind)
#134687
Tritanopia (blue-blind)
#564157
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e2d89;
/* rgb */ color: rgb(94, 45, 137);
/* oklch */ color: oklch(41.0% 0.148 305.2);
Tailwind
colors: {
  custom: {
    50: '#8f69ac',
    500: '#5e2d89',
    950: '#000000',
  },
}
SCSS
$custom: #5e2d89;
$custom-light: #8f69ac;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2d89",
  "rgb": {
    "r": 94,
    "g": 45,
    "b": 137
  },
  "hsl": {
    "h": 271.957,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.41035,
    "c": 0.14833,
    "h": 305.2
  },
  "luminance": 0.06063
}

Semantic roles & 50–950 ramp

primary
#5E2D89
secondary
#86B35F
accent
#DA4E8F
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2D89

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

Preview Lab → · Contrast checker → · Palette generator →

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