#5A29B6#5A29B6

#5A29B6 is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.9% C 0.203 H 291.4°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#5A29B6
RGBrgb(90, 41, 182)
HSLhsl(261, 63%, 44%)
HSVhsv(261, 77%, 71%)
CMYKcmyk(50.5%, 77.5%, 0%, 28.6%)
CIE-LABlab(32.12, 53.16, -65.92)
CIE-LCHlch(32.12, 84.69, 308.88°)
OKLaboklab(43.89% 0.0743 -0.1894)
OKLCHoklch(43.89% 0.203 291.4)
XYZxyz(13.4505, 7.1364, 44.9157)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A29B6 #85B629
analogous
#293EB6 #5A29B6 #A029B6
triadic
#5A29B6 #B65A29 #29B65A
tetradic
#5A29B6 #B6293E #85B629 #29B6A0
square
#5A29B6 #B6293E #85B629 #29B6A0
split-complementary
#5A29B6 #B6A029 #3EB629
monochromatic
#291252 #411E84 #5A29B6 #7847D5 #9D79E1

Accessibility & contrast

On white

8.65
#5A29B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5A29B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A29B6
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A29B6#FFFFFF#000000##FFFFFF
##5A29B61.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBA
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#3B516F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a29b6;
/* rgb */ color: rgb(90, 41, 182);
/* oklch */ color: oklch(43.9% 0.203 291.4);
Tailwind
colors: {
  custom: {
    50: '#9269cd',
    500: '#5a29b6',
    950: '#000000',
  },
}
SCSS
$custom: #5a29b6;
$custom-light: #9269cd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a29b6",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 182
  },
  "hsl": {
    "h": 260.851,
    "s": 63.229,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43886,
    "c": 0.20344,
    "h": 291.4
  },
  "luminance": 0.07137
}

Semantic roles & 50–950 ramp

primary
#5A29B6
secondary
#ABC972
accent
#E642AD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A29B6

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

Preview Lab → · Contrast checker → · Palette generator →

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