#5A2EA3#5A2EA3

#5A2EA3 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.8% C 0.177 H 295.0°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#5A2EA3
RGBrgb(90, 46, 163)
HSLhsl(263, 56%, 41%)
HSVhsv(263, 72%, 64%)
CMYKcmyk(44.8%, 71.8%, 0%, 36.1%)
CIE-LABlab(31.28, 45.65, -55.91)
CIE-LCHlch(31.28, 72.18, 309.23°)
OKLaboklab(42.78% 0.0747 -0.16)
OKLCHoklch(42.78% 0.177 295)
XYZxyz(11.8025, 6.7717, 35.3285)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EA3 #77A32E
analogous
#2E3CA3 #5A2EA3 #942EA3
triadic
#5A2EA3 #A35A2E #2EA35A
tetradic
#5A2EA3 #A32E3C #77A32E #2EA394
square
#5A2EA3 #A32E3C #77A32E #2EA394
split-complementary
#5A2EA3 #A3942E #3CA32E
monochromatic
#251344 #402173 #5A2EA3 #7644CA #9974D8

Accessibility & contrast

On white

8.92
#5A2EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#5A2EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EA3
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EA3#FFFFFF#000000##FFFFFF
##5A2EA31.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#0048A1
Tritanopia (blue-blind)
#464C65
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a2ea3;
/* rgb */ color: rgb(90, 46, 163);
/* oklch */ color: oklch(42.8% 0.177 295.0);
Tailwind
colors: {
  custom: {
    50: '#8f6bbf',
    500: '#5a2ea3',
    950: '#000000',
  },
}
SCSS
$custom: #5a2ea3;
$custom-light: #8f6bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2ea3",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 262.564,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42783,
    "c": 0.17662,
    "h": 295
  },
  "luminance": 0.06772
}

Semantic roles & 50–950 ramp

primary
#5A2EA3
secondary
#A1BF6D
accent
#DF49A7
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5A2EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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