#5E2A87#5E2A87

#5E2A87 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.150 H 306.5°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#5E2A87
RGBrgb(94, 42, 135)
HSLhsl(274, 53%, 35%)
HSVhsv(274, 69%, 53%)
CMYKcmyk(30.4%, 68.9%, 0%, 47.1%)
CIE-LABlab(28.86, 41.21, -42.65)
CIE-LCHlch(28.86, 59.30, 314.02°)
OKLaboklab(40.48% 0.0893 -0.1209)
OKLCHoklch(40.48% 0.15 306.5)
XYZxyz(9.8163, 5.7850, 23.5165)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E2A87 #53872A
analogous
#2F2A87 #5E2A87 #872A82
triadic
#5E2A87 #875E2A #2A875E
tetradic
#5E2A87 #872F2A #53872A #2A8287
square
#5E2A87 #872F2A #53872A #2A8287
split-complementary
#5E2A87 #82872A #2A872F
monochromatic
#1D0D2A #3D1B58 #5E2A87 #7F39B6 #9C5ECD

Accessibility & contrast

On white

9.74
#5E2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5E2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E2A87
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E2A87#FFFFFF#000000##FFFFFF
##5E2A871.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#114485
Tritanopia (blue-blind)
#573E55
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5e2a87;
/* rgb */ color: rgb(94, 42, 135);
/* oklch */ color: oklch(40.5% 0.150 306.5);
Tailwind
colors: {
  custom: {
    50: '#8f67ab',
    500: '#5e2a87',
    950: '#000000',
  },
}
SCSS
$custom: #5e2a87;
$custom-light: #8f67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e2a87",
  "rgb": {
    "r": 94,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 273.548,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40481,
    "c": 0.15029,
    "h": 306.5
  },
  "luminance": 0.05785
}

Semantic roles & 50–950 ramp

primary
#5E2A87
secondary
#81B35A
accent
#DC4C8B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5E2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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