#5A2EA1#5A2EA1

#5A2EA1 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.174 H 295.5°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5A2EA1
RGBrgb(90, 46, 161)
HSLhsl(263, 56%, 41%)
HSVhsv(263, 71%, 63%)
CMYKcmyk(44.1%, 71.4%, 0%, 36.9%)
CIE-LABlab(31.12, 45.11, -54.97)
CIE-LCHlch(31.12, 71.11, 309.37°)
OKLaboklab(42.61% 0.0751 -0.1573)
OKLCHoklch(42.61% 0.174 295.5)
XYZxyz(11.6248, 6.7006, 34.3922)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EA1 #75A12E
analogous
#2E3BA1 #5A2EA1 #942EA1
triadic
#5A2EA1 #A15A2E #2EA15A
tetradic
#5A2EA1 #A12E3B #75A12E #2EA194
square
#5A2EA1 #A12E3B #75A12E #2EA194
split-complementary
#5A2EA1 #A1942E #3BA12E
monochromatic
#251342 #3F2071 #5A2EA1 #7643C9 #9973D7

Accessibility & contrast

On white

8.97
#5A2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5A2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EA1
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EA1#FFFFFF#000000##FFFFFF
##5A2EA11.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA4
Deuteranopia (green-blind)
#00489F
Tritanopia (blue-blind)
#474B64
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a2ea1;
/* rgb */ color: rgb(90, 46, 161);
/* oklch */ color: oklch(42.6% 0.174 295.5);
Tailwind
colors: {
  custom: {
    50: '#8f6abe',
    500: '#5a2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ea1;
$custom-light: #8f6abe;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ea1",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 262.957,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42614,
    "c": 0.17429,
    "h": 295.5
  },
  "luminance": 0.06701
}

Semantic roles & 50–950 ramp

primary
#5A2EA1
secondary
#9FBE6C
accent
#DF49A6
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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