#5A2E89#5A2E89

#5A2E89 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.146 H 302.6°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#5A2E89
RGBrgb(90, 46, 137)
HSLhsl(269, 50%, 36%)
HSVhsv(269, 66%, 54%)
CMYKcmyk(34.3%, 66.4%, 0%, 46.3%)
CIE-LABlab(29.24, 38.70, -43.30)
CIE-LCHlch(29.24, 58.07, 311.79°)
OKLaboklab(40.69% 0.0786 -0.1229)
OKLCHoklch(40.69% 0.146 302.6)
XYZxyz(9.7077, 5.9338, 24.2960)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2E89 #5D892E
analogous
#2E2F89 #5A2E89 #872E89
triadic
#5A2E89 #895A2E #2E895A
tetradic
#5A2E89 #892E2F #5D892E #2E8987
square
#5A2E89 #892E2F #5D892E #2E8987
split-complementary
#5A2E89 #89872E #2F892E
monochromatic
#1E0F2D #3C1F5B #5A2E89 #783DB7 #9766CC

Accessibility & contrast

On white

9.60
#5A2E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5A2E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2E89
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2E89#FFFFFF#000000##FFFFFF
##5A2E891.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448C
Deuteranopia (green-blind)
#0D4587
Tritanopia (blue-blind)
#514257
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a2e89;
/* rgb */ color: rgb(90, 46, 137);
/* oklch */ color: oklch(40.7% 0.146 302.6);
Tailwind
colors: {
  custom: {
    50: '#8c6aac',
    500: '#5a2e89',
    950: '#000000',
  },
}
SCSS
$custom: #5a2e89;
$custom-light: #8c6aac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2e89",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 137
  },
  "hsl": {
    "h": 269.011,
    "s": 49.727,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40686,
    "c": 0.14593,
    "h": 302.6
  },
  "luminance": 0.05934
}

Semantic roles & 50–950 ramp

primary
#5A2E89
secondary
#8BB260
accent
#D94F96
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #5A2E89

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

Preview Lab → · Contrast checker → · Palette generator →

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