#5A29B0#5A29B0

#5A29B0 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.3% C 0.197 H 292.7°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#5A29B0
RGBrgb(90, 41, 176)
HSLhsl(262, 62%, 43%)
HSVhsv(262, 77%, 69%)
CMYKcmyk(48.9%, 76.7%, 0%, 31%)
CIE-LABlab(31.56, 51.56, -63.26)
CIE-LCHlch(31.56, 81.61, 309.18°)
OKLaboklab(43.33% 0.076 -0.1815)
OKLCHoklch(43.33% 0.197 292.7)
XYZxyz(12.8437, 6.8937, 41.7198)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A29B0 #7FB029
analogous
#293BB0 #5A29B0 #9E29B0
triadic
#5A29B0 #B05A29 #29B05A
tetradic
#5A29B0 #B0293B #7FB029 #29B09E
square
#5A29B0 #B0293B #7FB029 #29B09E
split-complementary
#5A29B0 #B09E29 #3BB029
monochromatic
#27124D #411D7E #5A29B0 #7743D3 #9B75DF

Accessibility & contrast

On white

8.83
#5A29B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5A29B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A29B0
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A29B0#FFFFFF#000000##FFFFFF
##5A29B01.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB4
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#3F4E6B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5a29b0;
/* rgb */ color: rgb(90, 41, 176);
/* oklch */ color: oklch(43.3% 0.197 292.7);
Tailwind
colors: {
  custom: {
    50: '#9168c9',
    500: '#5a29b0',
    950: '#000000',
  },
}
SCSS
$custom: #5a29b0;
$custom-light: #9168c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a29b0",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 176
  },
  "hsl": {
    "h": 261.778,
    "s": 62.212,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43332,
    "c": 0.19683,
    "h": 292.7
  },
  "luminance": 0.06894
}

Semantic roles & 50–950 ramp

primary
#5A29B0
secondary
#A6C66F
accent
#E543AA
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5A29B0

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

Preview Lab → · Contrast checker → · Palette generator →

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