#5A29BC#5A29BC

#5A29BC is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.4% C 0.210 H 290.2°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#5A29BC
RGBrgb(90, 41, 188)
HSLhsl(260, 64%, 45%)
HSVhsv(260, 78%, 74%)
CMYKcmyk(52.1%, 78.2%, 0%, 26.3%)
CIE-LABlab(32.68, 54.76, -68.55)
CIE-LCHlch(32.68, 87.74, 308.62°)
OKLaboklab(44.45% 0.0726 -0.1971)
OKLCHoklch(44.45% 0.21 290.2)
XYZxyz(14.0839, 7.3898, 48.2515)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A29BC #8BBC29
analogous
#2942BC #5A29BC #A429BC
triadic
#5A29BC #BC5A29 #29BC5A
tetradic
#5A29BC #BC2942 #8BBC29 #29BCA4
square
#5A29BC #BC2942 #8BBC29 #29BCA4
split-complementary
#5A29BC #BCA429 #42BC29
monochromatic
#2A1358 #421E8A #5A29BC #7A4BD8 #9F7DE3

Accessibility & contrast

On white

8.47
#5A29BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5A29BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A29BC
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A29BC#FFFFFF#000000##FFFFFF
##5A29BC1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC0
Deuteranopia (green-blind)
#0049B9
Tritanopia (blue-blind)
#365372
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5a29bc;
/* rgb */ color: rgb(90, 41, 188);
/* oklch */ color: oklch(44.4% 0.210 290.2);
Tailwind
colors: {
  custom: {
    50: '#9369d1',
    500: '#5a29bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a29bc;
$custom-light: #9369d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a29bc",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 188
  },
  "hsl": {
    "h": 260,
    "s": 64.192,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44449,
    "c": 0.21,
    "h": 290.2
  },
  "luminance": 0.0739
}

Semantic roles & 50–950 ramp

primary
#5A29BC
secondary
#AFCB76
accent
#E741B0
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5A29BC

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

Preview Lab → · Contrast checker → · Palette generator →

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