#5E2987#5E2987

#5E2987 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.152 H 306.6°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5E2987
RGBrgb(94, 41, 135)
HSLhsl(274, 53%, 35%)
HSVhsv(274, 70%, 53%)
CMYKcmyk(30.4%, 69.6%, 0%, 47.1%)
CIE-LABlab(28.68, 41.72, -42.94)
CIE-LCHlch(28.68, 59.87, 314.17°)
OKLaboklab(40.35% 0.0905 -0.1217)
OKLCHoklch(40.35% 0.152 306.6)
XYZxyz(9.7813, 5.7149, 23.5048)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2987 #528729
analogous
#2F2987 #5E2987 #872981
triadic
#5E2987 #875E29 #29875E
tetradic
#5E2987 #872F29 #528729 #298187
square
#5E2987 #872F29 #528729 #298187
split-complementary
#5E2987 #818729 #29872F
monochromatic
#1D0C29 #3D1B58 #5E2987 #7F37B6 #9C5DCE

Accessibility & contrast

On white

9.80
#5E2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E2987
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2987#FFFFFF#000000##FFFFFF
##5E29871.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#0F4485
Tritanopia (blue-blind)
#573E54
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e2987;
/* rgb */ color: rgb(94, 41, 135);
/* oklch */ color: oklch(40.4% 0.152 306.6);
Tailwind
colors: {
  custom: {
    50: '#8f67ab',
    500: '#5e2987',
    950: '#000000',
  },
}
SCSS
$custom: #5e2987;
$custom-light: #8f67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2987",
  "rgb": {
    "r": 94,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 273.83,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40351,
    "c": 0.15168,
    "h": 306.6
  },
  "luminance": 0.05715
}

Semantic roles & 50–950 ramp

primary
#5E2987
secondary
#80B359
accent
#DD4B8B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2987

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

Preview Lab → · Contrast checker → · Palette generator →

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