#5A29B7#5A29B7

#5A29B7 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.0% C 0.205 H 291.2°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#5A29B7
RGBrgb(90, 41, 183)
HSLhsl(261, 63%, 44%)
HSVhsv(261, 78%, 72%)
CMYKcmyk(50.8%, 77.6%, 0%, 28.2%)
CIE-LABlab(32.21, 53.43, -66.37)
CIE-LCHlch(32.21, 85.20, 308.84°)
OKLaboklab(43.98% 0.0741 -0.1907)
OKLCHoklch(43.98% 0.205 291.2)
XYZxyz(13.5542, 7.1779, 45.4619)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A29B7 #86B729
analogous
#293FB7 #5A29B7 #A129B7
triadic
#5A29B7 #B75A29 #29B75A
tetradic
#5A29B7 #B7293F #86B729 #29B7A1
square
#5A29B7 #B7293F #86B729 #29B7A1
split-complementary
#5A29B7 #B7A129 #3FB729
monochromatic
#291353 #411E85 #5A29B7 #7947D6 #9D79E1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A29B7#FFFFFF#000000##FFFFFF
##5A29B71.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)
#004EBB
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#3A516F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5a29b7;
/* rgb */ color: rgb(90, 41, 183);
/* oklch */ color: oklch(44.0% 0.205 291.2);
Tailwind
colors: {
  custom: {
    50: '#9269ce',
    500: '#5a29b7',
    950: '#000000',
  },
}
SCSS
$custom: #5a29b7;
$custom-light: #9269ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5a29b7",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 183
  },
  "hsl": {
    "h": 260.704,
    "s": 63.393,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43979,
    "c": 0.20454,
    "h": 291.2
  },
  "luminance": 0.07178
}

Semantic roles & 50–950 ramp

primary
#5A29B7
secondary
#ABC973
accent
#E641AD
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5A29B7

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

Preview Lab → · Contrast checker → · Palette generator →

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