#5A2E9E#5A2E9E

#5A2E9E is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.171 H 296.3°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#5A2E9E
RGBrgb(90, 46, 158)
HSLhsl(264, 55%, 40%)
HSVhsv(264, 71%, 62%)
CMYKcmyk(43%, 70.9%, 0%, 38%)
CIE-LABlab(30.87, 44.30, -53.56)
CIE-LCHlch(30.87, 69.50, 309.59°)
OKLaboklab(42.36% 0.0757 -0.1531)
OKLCHoklch(42.36% 0.171 296.3)
XYZxyz(11.3634, 6.5960, 33.0156)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2E9E #729E2E
analogous
#2E3A9E #5A2E9E #922E9E
triadic
#5A2E9E #9E5A2E #2E9E5A
tetradic
#5A2E9E #9E2E3A #729E2E #2E9E92
square
#5A2E9E #9E2E3A #729E2E #2E9E92
split-complementary
#5A2E9E #9E922E #3A9E2E
monochromatic
#24123F #3F206F #5A2E9E #7641C8 #9871D6

Accessibility & contrast

On white

9.05
#5A2E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5A2E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2E9E
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2E9E#FFFFFF#000000##FFFFFF
##5A2E9E1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#00479C
Tritanopia (blue-blind)
#484A62
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2e9e;
/* rgb */ color: rgb(90, 46, 158);
/* oklch */ color: oklch(42.4% 0.171 296.3);
Tailwind
colors: {
  custom: {
    50: '#8f6abb',
    500: '#5a2e9e',
    950: '#000000',
  },
}
SCSS
$custom: #5a2e9e;
$custom-light: #8f6abb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2e9e",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 263.571,
    "s": 54.902,
    "l": 40
  },
  "oklch": {
    "l": 0.42361,
    "c": 0.17078,
    "h": 296.3
  },
  "luminance": 0.06596
}

Semantic roles & 50–950 ramp

primary
#5A2E9E
secondary
#9DBD6B
accent
#DE4AA4
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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