#5A29A8#5A29A8

#5A29A8 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.188 H 294.6°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#5A29A8
RGBrgb(90, 41, 168)
HSLhsl(263, 61%, 41%)
HSVhsv(263, 76%, 66%)
CMYKcmyk(46.4%, 75.6%, 0%, 34.1%)
CIE-LABlab(30.85, 49.43, -59.64)
CIE-LCHlch(30.85, 77.46, 309.66°)
OKLaboklab(42.61% 0.0782 -0.1709)
OKLCHoklch(42.61% 0.188 294.6)
XYZxyz(12.0753, 6.5863, 37.6733)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A29A8 #77A829
analogous
#2937A8 #5A29A8 #9929A8
triadic
#5A29A8 #A85A29 #29A85A
tetradic
#5A29A8 #A82937 #77A829 #29A899
square
#5A29A8 #A82937 #77A829 #29A899
split-complementary
#5A29A8 #A89929 #37A829
monochromatic
#251146 #401D77 #5A29A8 #763ED0 #996FDC

Accessibility & contrast

On white

9.06
#5A29A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5A29A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A29A8
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A29A8#FFFFFF#000000##FFFFFF
##5A29A81.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAC
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#434B67
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a29a8;
/* rgb */ color: rgb(90, 41, 168);
/* oklch */ color: oklch(42.6% 0.188 294.6);
Tailwind
colors: {
  custom: {
    50: '#9068c3',
    500: '#5a29a8',
    950: '#000000',
  },
}
SCSS
$custom: #5a29a8;
$custom-light: #9068c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a29a8",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 168
  },
  "hsl": {
    "h": 263.15,
    "s": 60.766,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42608,
    "c": 0.18797,
    "h": 294.6
  },
  "luminance": 0.06587
}

Semantic roles & 50–950 ramp

primary
#5A29A8
secondary
#A1C36A
accent
#E444A6
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #5A29A8

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

Preview Lab → · Contrast checker → · Palette generator →

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