#5A2EA7#5A2EA7

#5A2EA7 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.181 H 294.1°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#5A2EA7
RGBrgb(90, 46, 167)
HSLhsl(262, 57%, 42%)
HSVhsv(262, 72%, 65%)
CMYKcmyk(46.1%, 72.5%, 0%, 34.5%)
CIE-LABlab(31.62, 46.74, -57.77)
CIE-LCHlch(31.62, 74.31, 308.97°)
OKLaboklab(43.13% 0.0739 -0.1655)
OKLCHoklch(43.13% 0.181 294.1)
XYZxyz(12.1666, 6.9173, 37.2459)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EA7 #7BA72E
analogous
#2E3FA7 #5A2EA7 #972EA7
triadic
#5A2EA7 #A75A2E #2EA75A
tetradic
#5A2EA7 #A72E3F #7BA72E #2EA797
square
#5A2EA7 #A72E3F #7BA72E #2EA797
split-complementary
#5A2EA7 #A7972E #3FA72E
monochromatic
#261447 #402177 #5A2EA7 #7746CC #9A76D9

Accessibility & contrast

On white

8.81
#5A2EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5A2EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EA7
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EA7#FFFFFF#000000##FFFFFF
##5A2EA71.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAB
Deuteranopia (green-blind)
#0048A5
Tritanopia (blue-blind)
#444D67
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a2ea7;
/* rgb */ color: rgb(90, 46, 167);
/* oklch */ color: oklch(43.1% 0.181 294.1);
Tailwind
colors: {
  custom: {
    50: '#906bc2',
    500: '#5a2ea7',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ea7;
$custom-light: #906bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ea7",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 261.818,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43126,
    "c": 0.18125,
    "h": 294.1
  },
  "luminance": 0.06918
}

Semantic roles & 50–950 ramp

primary
#5A2EA7
secondary
#A4C170
accent
#E048A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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