#5E2E85#5E2E85

#5E2E85 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.142 H 306.5°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5E2E85
RGBrgb(94, 46, 133)
HSLhsl(273, 49%, 35%)
HSVhsv(273, 65%, 52%)
CMYKcmyk(29.3%, 65.4%, 0%, 47.8%)
CIE-LABlab(29.48, 38.63, -40.40)
CIE-LCHlch(29.48, 55.90, 313.71°)
OKLaboklab(40.88% 0.0846 -0.1143)
OKLCHoklch(40.88% 0.142 306.5)
XYZxyz(9.8258, 6.0272, 22.8315)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2E85 #55852E
analogous
#322E85 #5E2E85 #852E81
triadic
#5E2E85 #855E2E #2E855E
tetradic
#5E2E85 #85322E #55852E #2E8185
square
#5E2E85 #85322E #55852E #2E8185
split-complementary
#5E2E85 #81852E #2E8532
monochromatic
#1E0F2A #3E1E58 #5E2E85 #7E3EB2 #9C64C9

Accessibility & contrast

On white

9.52
#5E2E85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2E85
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2E85#FFFFFF#000000##FFFFFF
##5E2E851.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004488
Deuteranopia (green-blind)
#1B4683
Tritanopia (blue-blind)
#584055
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5e2e85;
/* rgb */ color: rgb(94, 46, 133);
/* oklch */ color: oklch(40.9% 0.142 306.5);
Tailwind
colors: {
  custom: {
    50: '#8f6aa9',
    500: '#5e2e85',
    950: '#000000',
  },
}
SCSS
$custom: #5e2e85;
$custom-light: #8f6aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2e85",
  "rgb": {
    "r": 94,
    "g": 46,
    "b": 133
  },
  "hsl": {
    "h": 273.103,
    "s": 48.603,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40881,
    "c": 0.14221,
    "h": 306.5
  },
  "luminance": 0.06027
}

Semantic roles & 50–950 ramp

primary
#5E2E85
secondary
#83B05F
accent
#D8508D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5E2E85

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

Preview Lab → · Contrast checker → · Palette generator →

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