#5E2986#5E2986

#5E2986 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.3% C 0.151 H 307.0°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#5E2986
RGBrgb(94, 41, 134)
HSLhsl(274, 53%, 34%)
HSVhsv(274, 69%, 53%)
CMYKcmyk(29.9%, 69.4%, 0%, 47.5%)
CIE-LABlab(28.61, 41.47, -42.43)
CIE-LCHlch(28.61, 59.33, 314.34°)
OKLaboklab(40.28% 0.0906 -0.1202)
OKLCHoklch(40.28% 0.151 307)
XYZxyz(9.7112, 5.6869, 23.1357)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2986 #518629
analogous
#302986 #5E2986 #862980
triadic
#5E2986 #865E29 #29865E
tetradic
#5E2986 #863029 #518629 #298086
square
#5E2986 #863029 #518629 #298086
split-complementary
#5E2986 #808629 #298630
monochromatic
#1C0C28 #3D1B57 #5E2986 #7F37B5 #9D5CCD

Accessibility & contrast

On white

9.83
#5E2986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5E2986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2986
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2986#FFFFFF#000000##FFFFFF
##5E29861.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#124484
Tritanopia (blue-blind)
#573D54
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e2986;
/* rgb */ color: rgb(94, 41, 134);
/* oklch */ color: oklch(40.3% 0.151 307.0);
Tailwind
colors: {
  custom: {
    50: '#8f67aa',
    500: '#5e2986',
    950: '#000000',
  },
}
SCSS
$custom: #5e2986;
$custom-light: #8f67aa;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2986",
  "rgb": {
    "r": 94,
    "g": 41,
    "b": 134
  },
  "hsl": {
    "h": 274.194,
    "s": 53.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.40275,
    "c": 0.15056,
    "h": 307
  },
  "luminance": 0.05687
}

Semantic roles & 50–950 ramp

primary
#5E2986
secondary
#7FB358
accent
#DD4B8A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2986

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

Preview Lab → · Contrast checker → · Palette generator →

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