#5A2EAC#5A2EAC

#5A2EAC is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.187 H 292.9°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#5A2EAC
RGBrgb(90, 46, 172)
HSLhsl(261, 58%, 43%)
HSVhsv(261, 73%, 67%)
CMYKcmyk(47.7%, 73.3%, 0%, 32.5%)
CIE-LABlab(32.05, 48.10, -60.07)
CIE-LCHlch(32.05, 76.96, 308.69°)
OKLaboklab(43.56% 0.0728 -0.1722)
OKLCHoklch(43.56% 0.187 292.9)
XYZxyz(12.6378, 7.1058, 39.7274)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2EAC #80AC2E
analogous
#2E41AC #5A2EAC #992EAC
triadic
#5A2EAC #AC5A2E #2EAC5A
tetradic
#5A2EAC #AC2E41 #80AC2E #2EAC99
square
#5A2EAC #AC2E41 #80AC2E #2EAC99
split-complementary
#5A2EAC #AC992E #41AC2E
monochromatic
#27144B #41217C #5A2EAC #7749CE #9B79DB

Accessibility & contrast

On white

8.67
#5A2EAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5A2EAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2EAC
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2EAC#FFFFFF#000000##FFFFFF
##5A2EAC1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#414F6A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5a2eac;
/* rgb */ color: rgb(90, 46, 172);
/* oklch */ color: oklch(43.6% 0.187 292.9);
Tailwind
colors: {
  custom: {
    50: '#906bc6',
    500: '#5a2eac',
    950: '#000000',
  },
}
SCSS
$custom: #5a2eac;
$custom-light: #906bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2eac",
  "rgb": {
    "r": 90,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 260.952,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43562,
    "c": 0.18701,
    "h": 292.9
  },
  "luminance": 0.07106
}

Semantic roles & 50–950 ramp

primary
#5A2EAC
secondary
#A7C372
accent
#E147AB
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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