#5A2BAD#5A2BAD

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

Color values

HEX#5A2BAD
RGBrgb(90, 43, 173)
HSLhsl(262, 60%, 42%)
HSVhsv(262, 75%, 68%)
CMYKcmyk(48%, 75.1%, 0%, 32.2%)
CIE-LABlab(31.62, 49.83, -61.37)
CIE-LCHlch(31.62, 79.05, 309.07°)
OKLaboklab(43.29% 0.0752 -0.176)
OKLCHoklch(43.29% 0.191 293.1)
XYZxyz(12.6211, 6.9181, 40.1974)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2BAD #7EAD2B
analogous
#2B3DAD #5A2BAD #9B2BAD
triadic
#5A2BAD #AD5A2B #2BAD5A
tetradic
#5A2BAD #AD2B3D #7EAD2B #2BAD9B
square
#5A2BAD #AD2B3D #7EAD2B #2BAD9B
split-complementary
#5A2BAD #AD9B2B #3DAD2B
monochromatic
#27134B #401F7C #5A2BAD #7745D1 #9B76DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A2BAD#FFFFFF#000000##FFFFFF
##5A2BAD1.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)
#004CB1
Deuteranopia (green-blind)
#0048AB
Tritanopia (blue-blind)
#404E6A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a2bad;
/* rgb */ color: rgb(90, 43, 173);
/* oklch */ color: oklch(43.3% 0.191 293.1);
Tailwind
colors: {
  custom: {
    50: '#9169c6',
    500: '#5a2bad',
    950: '#000000',
  },
}
SCSS
$custom: #5a2bad;
$custom-light: #9169c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2bad",
  "rgb": {
    "r": 90,
    "g": 43,
    "b": 173
  },
  "hsl": {
    "h": 261.692,
    "s": 60.185,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43288,
    "c": 0.19143,
    "h": 293.1
  },
  "luminance": 0.06919
}

Semantic roles & 50–950 ramp

primary
#5A2BAD
secondary
#A6C46F
accent
#E344AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5A2BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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