#5A2E8A#5A2E8A

#5A2E8A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.8% C 0.147 H 302.2°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#5A2E8A
RGBrgb(90, 46, 138)
HSLhsl(269, 50%, 36%)
HSVhsv(269, 67%, 54%)
CMYKcmyk(34.8%, 66.7%, 0%, 45.9%)
CIE-LABlab(29.32, 38.96, -43.80)
CIE-LCHlch(29.32, 58.62, 311.65°)
OKLaboklab(40.76% 0.0785 -0.1244)
OKLCHoklch(40.76% 0.147 302.2)
XYZxyz(9.7798, 5.9626, 24.6755)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2E8A #5E8A2E
analogous
#2E308A #5A2E8A #882E8A
triadic
#5A2E8A #8A5A2E #2E8A5A
tetradic
#5A2E8A #8A2E30 #5E8A2E #2E8A88
square
#5A2E8A #8A2E30 #5E8A2E #2E8A88
split-complementary
#5A2E8A #8A882E #308A2E
monochromatic
#1E0F2E #3C1F5C #5A2E8A #783DB8 #9766CC

Accessibility & contrast

On white

9.58
#5A2E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A2E8A
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2E8A#FFFFFF#000000##FFFFFF
##5A2E8A1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#0A4588
Tritanopia (blue-blind)
#504258
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a2e8a;
/* rgb */ color: rgb(90, 46, 138);
/* oklch */ color: oklch(40.8% 0.147 302.2);
Tailwind
colors: {
  custom: {
    50: '#8d6aad',
    500: '#5a2e8a',
    950: '#000000',
  },
}
SCSS
$custom: #5a2e8a;
$custom-light: #8d6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2e8a",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 268.696,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40762,
    "c": 0.14712,
    "h": 302.2
  },
  "luminance": 0.05963
}

Semantic roles & 50–950 ramp

primary
#5A2E8A
secondary
#8CB361
accent
#DA4E97
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #5A2E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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