#5A2E87#5A2E87

#5A2E87 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.144 H 303.3°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#5A2E87
RGBrgb(90, 46, 135)
HSLhsl(270, 49%, 35%)
HSVhsv(270, 66%, 53%)
CMYKcmyk(33.3%, 65.9%, 0%, 47.1%)
CIE-LABlab(29.10, 38.18, -42.29)
CIE-LCHlch(29.10, 56.97, 312.07°)
OKLaboklab(40.53% 0.0788 -0.12)
OKLCHoklch(40.53% 0.144 303.3)
XYZxyz(9.5656, 5.8769, 23.5474)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2E87 #5B872E
analogous
#2E2E87 #5A2E87 #862E87
triadic
#5A2E87 #875A2E #2E875A
tetradic
#5A2E87 #872E2E #5B872E #2E8786
square
#5A2E87 #872E2E #5B872E #2E8786
split-complementary
#5A2E87 #87862E #2E872E
monochromatic
#1D0F2C #3C1E59 #5A2E87 #783EB5 #9765CA

Accessibility & contrast

On white

9.65
#5A2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#5A2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2E87
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2E87#FFFFFF#000000##FFFFFF
##5A2E871.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#124485
Tritanopia (blue-blind)
#514156
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a2e87;
/* rgb */ color: rgb(90, 46, 135);
/* oklch */ color: oklch(40.5% 0.144 303.3);
Tailwind
colors: {
  custom: {
    50: '#8c6aab',
    500: '#5a2e87',
    950: '#000000',
  },
}
SCSS
$custom: #5a2e87;
$custom-light: #8c6aab;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2e87",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 269.663,
    "s": 49.171,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40535,
    "c": 0.14354,
    "h": 303.3
  },
  "luminance": 0.05877
}

Semantic roles & 50–950 ramp

primary
#5A2E87
secondary
#89B160
accent
#D94F95
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #5A2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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