#5A2E9D#5A2E9D

#5A2E9D is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.170 H 296.6°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#5A2E9D
RGBrgb(90, 46, 157)
HSLhsl(264, 55%, 40%)
HSVhsv(264, 71%, 62%)
CMYKcmyk(42.7%, 70.7%, 0%, 38.4%)
CIE-LABlab(30.79, 44.03, -53.08)
CIE-LCHlch(30.79, 68.96, 309.67°)
OKLaboklab(42.28% 0.0759 -0.1517)
OKLCHoklch(42.28% 0.17 296.6)
XYZxyz(11.2777, 6.5617, 32.5641)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2E9D #719D2E
analogous
#2E399D #5A2E9D #922E9D
triadic
#5A2E9D #9D5A2E #2E9D5A
tetradic
#5A2E9D #9D2E39 #719D2E #2E9D92
square
#5A2E9D #9D2E39 #719D2E #2E9D92
split-complementary
#5A2E9D #9D922E #399D2E
monochromatic
#24123E #3F206E #5A2E9D #7641C7 #9870D5

Accessibility & contrast

On white

9.08
#5A2E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5A2E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2E9D
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2E9D#FFFFFF#000000##FFFFFF
##5A2E9D1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#00479B
Tritanopia (blue-blind)
#494962
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a2e9d;
/* rgb */ color: rgb(90, 46, 157);
/* oklch */ color: oklch(42.3% 0.170 296.6);
Tailwind
colors: {
  custom: {
    50: '#8f6abb',
    500: '#5a2e9d',
    950: '#000000',
  },
}
SCSS
$custom: #5a2e9d;
$custom-light: #8f6abb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2e9d",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 263.784,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.42278,
    "c": 0.16962,
    "h": 296.6
  },
  "luminance": 0.06562
}

Semantic roles & 50–950 ramp

primary
#5A2E9D
secondary
#9CBD6A
accent
#DE4AA3
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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