#5A29A5#5A29A5

#5A29A5 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.3% C 0.185 H 295.3°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#5A29A5
RGBrgb(90, 41, 165)
HSLhsl(264, 60%, 40%)
HSVhsv(264, 75%, 65%)
CMYKcmyk(45.5%, 75.2%, 0%, 35.3%)
CIE-LABlab(30.58, 48.64, -58.26)
CIE-LCHlch(30.58, 75.89, 309.86°)
OKLaboklab(42.34% 0.0789 -0.1669)
OKLCHoklch(42.34% 0.185 295.3)
XYZxyz(11.7991, 6.4758, 36.2183)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A29A5 #74A529
analogous
#2936A5 #5A29A5 #9829A5
triadic
#5A29A5 #A55A29 #29A55A
tetradic
#5A29A5 #A52936 #74A529 #29A598
square
#5A29A5 #A52936 #74A529 #29A598
split-complementary
#5A29A5 #A59829 #36A529
monochromatic
#251143 #3F1D74 #5A29A5 #763DCF #996EDB

Accessibility & contrast

On white

9.15
#5A29A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#5A29A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A29A5
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A29A5#FFFFFF#000000##FFFFFF
##5A29A51.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#454A65
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a29a5;
/* rgb */ color: rgb(90, 41, 165);
/* oklch */ color: oklch(42.3% 0.185 295.3);
Tailwind
colors: {
  custom: {
    50: '#9068c1',
    500: '#5a29a5',
    950: '#000000',
  },
}
SCSS
$custom: #5a29a5;
$custom-light: #9068c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a29a5",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 165
  },
  "hsl": {
    "h": 263.71,
    "s": 60.194,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42342,
    "c": 0.18462,
    "h": 295.3
  },
  "luminance": 0.06476
}

Semantic roles & 50–950 ramp

primary
#5A29A5
secondary
#9EC268
accent
#E344A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A29A5

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

Preview Lab → · Contrast checker → · Palette generator →

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