#5E2487#5E2487

#5E2487 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.7% C 0.158 H 307.4°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#5E2487
RGBrgb(94, 36, 135)
HSLhsl(275, 58%, 34%)
HSVhsv(275, 73%, 53%)
CMYKcmyk(30.4%, 73.3%, 0%, 47.1%)
CIE-LABlab(27.82, 44.13, -44.33)
CIE-LCHlch(27.82, 62.55, 314.87°)
OKLaboklab(39.74% 0.0961 -0.1258)
OKLCHoklch(39.74% 0.158 307.4)
XYZxyz(9.6192, 5.3908, 23.4508)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2487 #4D8724
analogous
#2D2487 #5E2487 #87247E
triadic
#5E2487 #875E24 #24875E
tetradic
#5E2487 #872D24 #4D8724 #247E87
square
#5E2487 #872D24 #4D8724 #247E87
split-complementary
#5E2487 #7E8724 #24872D
monochromatic
#1B0A26 #3C1757 #5E2487 #8031B7 #9D54D1

Accessibility & contrast

On white

10.10
#5E2487 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5E2487 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2487
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2487#FFFFFF#000000##FFFFFF
##5E24871.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408A
Deuteranopia (green-blind)
#044285
Tritanopia (blue-blind)
#573B53
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e2487;
/* rgb */ color: rgb(94, 36, 135);
/* oklch */ color: oklch(39.7% 0.158 307.4);
Tailwind
colors: {
  custom: {
    50: '#9064ab',
    500: '#5e2487',
    950: '#000000',
  },
}
SCSS
$custom: #5e2487;
$custom-light: #9064ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2487",
  "rgb": {
    "r": 94,
    "g": 36,
    "b": 135
  },
  "hsl": {
    "h": 275.152,
    "s": 57.895,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39736,
    "c": 0.15829,
    "h": 307.4
  },
  "luminance": 0.05391
}

Semantic roles & 50–950 ramp

primary
#5E2487
secondary
#7BB551
accent
#E14787
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2487

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

Preview Lab → · Contrast checker → · Palette generator →

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