#5A2FAC#5A2FAC

#5A2FAC is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.7% C 0.186 H 292.8°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#5A2FAC
RGBrgb(90, 47, 172)
HSLhsl(261, 57%, 43%)
HSVhsv(261, 73%, 67%)
CMYKcmyk(47.7%, 72.7%, 0%, 32.5%)
CIE-LABlab(32.22, 47.60, -59.78)
CIE-LCHlch(32.22, 76.42, 308.53°)
OKLaboklab(43.69% 0.0719 -0.1714)
OKLCHoklch(43.69% 0.186 292.8)
XYZxyz(12.6773, 7.1848, 39.7406)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2FAC #81AC2F
analogous
#2F42AC #5A2FAC #982FAC
triadic
#5A2FAC #AC5A2F #2FAC5A
tetradic
#5A2FAC #AC2F42 #81AC2F #2FAC98
square
#5A2FAC #AC2F42 #81AC2F #2FAC98
split-complementary
#5A2FAC #AC982F #42AC2F
monochromatic
#28154C #41227C #5A2FAC #784BCE #9C7BDB

Accessibility & contrast

On white

8.62
#5A2FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5A2FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2FAC
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2FAC#FFFFFF#000000##FFFFFF
##5A2FAC1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB0
Deuteranopia (green-blind)
#0049AA
Tritanopia (blue-blind)
#41506A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a2fac;
/* rgb */ color: rgb(90, 47, 172);
/* oklch */ color: oklch(43.7% 0.186 292.8);
Tailwind
colors: {
  custom: {
    50: '#906bc6',
    500: '#5a2fac',
    950: '#000000',
  },
}
SCSS
$custom: #5a2fac;
$custom-light: #906bc6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2fac",
  "rgb": {
    "r": 90,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 260.64,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43688,
    "c": 0.18587,
    "h": 292.8
  },
  "luminance": 0.07185
}

Semantic roles & 50–950 ramp

primary
#5A2FAC
secondary
#A8C374
accent
#E047AC
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A2FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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