#5A299D#5A299D

#5A299D is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.176 H 297.4°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#5A299D
RGBrgb(90, 41, 157)
HSLhsl(265, 59%, 39%)
HSVhsv(265, 74%, 62%)
CMYKcmyk(42.7%, 73.9%, 0%, 38.4%)
CIE-LABlab(29.90, 46.52, -54.53)
CIE-LCHlch(29.90, 71.68, 310.47°)
OKLaboklab(41.65% 0.0808 -0.1559)
OKLCHoklch(41.65% 0.176 297.4)
XYZxyz(11.0936, 6.1937, 32.5028)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A299D #6C9D29
analogous
#29329D #5A299D #94299D
triadic
#5A299D #9D5A29 #299D5A
tetradic
#5A299D #9D2932 #6C9D29 #299D94
square
#5A299D #9D2932 #6C9D29 #299D94
split-complementary
#5A299D #9D9429 #329D29
monochromatic
#22103C #3E1C6C #5A299D #7638CB #9869D8

Accessibility & contrast

On white

9.38
#5A299D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5A299D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A299D
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A299D#FFFFFF#000000##FFFFFF
##5A299D1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#494761
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a299d;
/* rgb */ color: rgb(90, 41, 157);
/* oklch */ color: oklch(41.6% 0.176 297.4);
Tailwind
colors: {
  custom: {
    50: '#8f67bb',
    500: '#5a299d',
    950: '#000000',
  },
}
SCSS
$custom: #5a299d;
$custom-light: #8f67bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a299d",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 157
  },
  "hsl": {
    "h": 265.345,
    "s": 58.586,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41645,
    "c": 0.17565,
    "h": 297.4
  },
  "luminance": 0.06194
}

Semantic roles & 50–950 ramp

primary
#5A299D
secondary
#98BE64
accent
#E246A0
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A299D

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

Preview Lab → · Contrast checker → · Palette generator →

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