#5A29A7#5A29A7

#5A29A7 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.5% C 0.187 H 294.8°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#5A29A7
RGBrgb(90, 41, 167)
HSLhsl(263, 61%, 41%)
HSVhsv(263, 75%, 65%)
CMYKcmyk(46.1%, 75.4%, 0%, 34.5%)
CIE-LABlab(30.76, 49.17, -59.18)
CIE-LCHlch(30.76, 76.94, 309.72°)
OKLaboklab(42.52% 0.0784 -0.1696)
OKLCHoklch(42.52% 0.187 294.8)
XYZxyz(11.9825, 6.5492, 37.1845)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A29A7 #76A729
analogous
#2937A7 #5A29A7 #9929A7
triadic
#5A29A7 #A75A29 #29A75A
tetradic
#5A29A7 #A72937 #76A729 #29A799
square
#5A29A7 #A72937 #76A729 #29A799
split-complementary
#5A29A7 #A79929 #37A729
monochromatic
#251145 #401D76 #5A29A7 #763ED0 #996FDC

Accessibility & contrast

On white

9.09
#5A29A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#5A29A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A29A7
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A29A7#FFFFFF#000000##FFFFFF
##5A29A71.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AB
Deuteranopia (green-blind)
#0046A5
Tritanopia (blue-blind)
#444B66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a29a7;
/* rgb */ color: rgb(90, 41, 167);
/* oklch */ color: oklch(42.5% 0.187 294.8);
Tailwind
colors: {
  custom: {
    50: '#9068c2',
    500: '#5a29a7',
    950: '#000000',
  },
}
SCSS
$custom: #5a29a7;
$custom-light: #9068c2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a29a7",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 167
  },
  "hsl": {
    "h": 263.333,
    "s": 60.577,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42519,
    "c": 0.18685,
    "h": 294.8
  },
  "luminance": 0.0655
}

Semantic roles & 50–950 ramp

primary
#5A29A7
secondary
#A0C269
accent
#E444A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A29A7

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

Preview Lab → · Contrast checker → · Palette generator →

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