#5A299A#5A299A

#5A299A is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.172 H 298.2°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#5A299A
RGBrgb(90, 41, 154)
HSLhsl(266, 58%, 38%)
HSVhsv(266, 73%, 60%)
CMYKcmyk(41.6%, 73.4%, 0%, 39.6%)
CIE-LABlab(29.64, 45.74, -53.12)
CIE-LCHlch(29.64, 70.09, 310.73°)
OKLaboklab(41.39% 0.0815 -0.1518)
OKLCHoklch(41.39% 0.172 298.2)
XYZxyz(10.8406, 6.0925, 31.1704)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A299A #699A29
analogous
#29309A #5A299A #92299A
triadic
#5A299A #9A5A29 #299A5A
tetradic
#5A299A #9A2930 #699A29 #299A92
square
#5A299A #9A2930 #699A29 #299A92
split-complementary
#5A299A #9A9229 #309A29
monochromatic
#220F39 #3E1C6A #5A299A #7637CA #9767D7

Accessibility & contrast

On white

9.47
#5A299A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5A299A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A299A
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A299A#FFFFFF#000000##FFFFFF
##5A299A1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469D
Deuteranopia (green-blind)
#004598
Tritanopia (blue-blind)
#4A455F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a299a;
/* rgb */ color: rgb(90, 41, 154);
/* oklch */ color: oklch(41.4% 0.172 298.2);
Tailwind
colors: {
  custom: {
    50: '#8f67b9',
    500: '#5a299a',
    950: '#000000',
  },
}
SCSS
$custom: #5a299a;
$custom-light: #8f67b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a299a",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 154
  },
  "hsl": {
    "h": 266.018,
    "s": 57.949,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41389,
    "c": 0.17227,
    "h": 298.2
  },
  "luminance": 0.06093
}

Semantic roles & 50–950 ramp

primary
#5A299A
secondary
#95BD62
accent
#E1479E
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A299A

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

Preview Lab → · Contrast checker → · Palette generator →

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