#5A299B#5A299B

#5A299B is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.5% C 0.173 H 297.9°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#5A299B
RGBrgb(90, 41, 155)
HSLhsl(266, 58%, 38%)
HSVhsv(266, 74%, 61%)
CMYKcmyk(41.9%, 73.5%, 0%, 39.2%)
CIE-LABlab(29.73, 46.00, -53.59)
CIE-LCHlch(29.73, 70.62, 310.64°)
OKLaboklab(41.47% 0.0813 -0.1532)
OKLCHoklch(41.47% 0.173 297.9)
XYZxyz(10.9243, 6.1259, 31.6109)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A299B #6A9B29
analogous
#29319B #5A299B #93299B
triadic
#5A299B #9B5A29 #299B5A
tetradic
#5A299B #9B2931 #6A9B29 #299B93
square
#5A299B #9B2931 #6A9B29 #299B93
split-complementary
#5A299B #9B9329 #319B29
monochromatic
#220F3A #3E1C6B #5A299B #7637CA #9767D7

Accessibility & contrast

On white

9.44
#5A299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#5A299B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A299B
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A299B#FFFFFF#000000##FFFFFF
##5A299B1.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#004599
Tritanopia (blue-blind)
#4A465F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a299b;
/* rgb */ color: rgb(90, 41, 155);
/* oklch */ color: oklch(41.5% 0.173 297.9);
Tailwind
colors: {
  custom: {
    50: '#8f67b9',
    500: '#5a299b',
    950: '#000000',
  },
}
SCSS
$custom: #5a299b;
$custom-light: #8f67b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a299b",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 265.789,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41474,
    "c": 0.1734,
    "h": 297.9
  },
  "luminance": 0.06126
}

Semantic roles & 50–950 ramp

primary
#5A299B
secondary
#96BD63
accent
#E1469F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A299B

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

Preview Lab → · Contrast checker → · Palette generator →

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