#5A2CAB#5A2CAB

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

Color values

HEX#5A2CAB
RGBrgb(90, 44, 171)
HSLhsl(262, 59%, 42%)
HSVhsv(262, 74%, 67%)
CMYKcmyk(47.4%, 74.3%, 0%, 32.9%)
CIE-LABlab(31.61, 48.81, -60.19)
CIE-LCHlch(31.61, 77.49, 309.04°)
OKLaboklab(43.23% 0.0748 -0.1726)
OKLCHoklch(43.23% 0.188 293.4)
XYZxyz(12.4658, 6.9149, 39.1981)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2CAB #7DAB2C
analogous
#2C3EAB #5A2CAB #9A2CAB
triadic
#5A2CAB #AB5A2C #2CAB5A
tetradic
#5A2CAB #AB2C3E #7DAB2C #2CAB9A
square
#5A2CAB #AB2C3E #7DAB2C #2CAB9A
split-complementary
#5A2CAB #AB9A2C #3EAB2C
monochromatic
#27134A #401F7A #5A2CAB #7745CF #9B76DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A2CAB#FFFFFF#000000##FFFFFF
##5A2CAB1.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)
#004CAF
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#414E69
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a2cab;
/* rgb */ color: rgb(90, 44, 171);
/* oklch */ color: oklch(43.2% 0.188 293.4);
Tailwind
colors: {
  custom: {
    50: '#906ac5',
    500: '#5a2cab',
    950: '#000000',
  },
}
SCSS
$custom: #5a2cab;
$custom-light: #906ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2cab",
  "rgb": {
    "r": 90,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 261.732,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43229,
    "c": 0.18808,
    "h": 293.4
  },
  "luminance": 0.06915
}

Semantic roles & 50–950 ramp

primary
#5A2CAB
secondary
#A5C36F
accent
#E246A9
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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