#5A29A6#5A29A6

#5A29A6 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.4% C 0.186 H 295.1°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#5A29A6
RGBrgb(90, 41, 166)
HSLhsl(264, 60%, 41%)
HSVhsv(264, 75%, 65%)
CMYKcmyk(45.8%, 75.3%, 0%, 34.9%)
CIE-LABlab(30.67, 48.90, -58.72)
CIE-LCHlch(30.67, 76.42, 309.79°)
OKLaboklab(42.43% 0.0787 -0.1682)
OKLCHoklch(42.43% 0.186 295.1)
XYZxyz(11.8905, 6.5124, 36.6995)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A29A6 #75A629
analogous
#2937A6 #5A29A6 #9829A6
triadic
#5A29A6 #A65A29 #29A65A
tetradic
#5A29A6 #A62937 #75A629 #29A698
square
#5A29A6 #A62937 #75A629 #29A698
split-complementary
#5A29A6 #A69829 #37A629
monochromatic
#251144 #3F1D75 #5A29A6 #763DCF #996EDB

Accessibility & contrast

On white

9.12
#5A29A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A29A6
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A29A6#FFFFFF#000000##FFFFFF
##5A29A61.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#444A66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #5a29a6;
/* rgb */ color: rgb(90, 41, 166);
/* oklch */ color: oklch(42.4% 0.186 295.1);
Tailwind
colors: {
  custom: {
    50: '#9068c1',
    500: '#5a29a6',
    950: '#000000',
  },
}
SCSS
$custom: #5a29a6;
$custom-light: #9068c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a29a6",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 166
  },
  "hsl": {
    "h": 263.52,
    "s": 60.386,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4243,
    "c": 0.18574,
    "h": 295.1
  },
  "luminance": 0.06513
}

Semantic roles & 50–950 ramp

primary
#5A29A6
secondary
#9FC269
accent
#E444A5
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A29A6

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

Preview Lab → · Contrast checker → · Palette generator →

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