#5A299E#5A299E

#5A299E is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.177 H 297.1°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#5A299E
RGBrgb(90, 41, 158)
HSLhsl(265, 59%, 39%)
HSVhsv(265, 74%, 62%)
CMYKcmyk(43%, 74.1%, 0%, 38%)
CIE-LABlab(29.98, 46.79, -55.00)
CIE-LCHlch(29.98, 72.21, 310.39°)
OKLaboklab(41.73% 0.0806 -0.1573)
OKLCHoklch(41.73% 0.177 297.1)
XYZxyz(11.1793, 6.2279, 32.9542)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A299E #6D9E29
analogous
#29339E #5A299E #95299E
triadic
#5A299E #9E5A29 #299E5A
tetradic
#5A299E #9E2933 #6D9E29 #299E95
square
#5A299E #9E2933 #6D9E29 #299E95
split-complementary
#5A299E #9E9529 #339E29
monochromatic
#23103D #3E1C6D #5A299E #7639CC #9869D8

Accessibility & contrast

On white

9.35
#5A299E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5A299E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A299E
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A299E#FFFFFF#000000##FFFFFF
##5A299E1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#484761
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5a299e;
/* rgb */ color: rgb(90, 41, 158);
/* oklch */ color: oklch(41.7% 0.177 297.1);
Tailwind
colors: {
  custom: {
    50: '#8f68bc',
    500: '#5a299e',
    950: '#000000',
  },
}
SCSS
$custom: #5a299e;
$custom-light: #8f68bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a299e",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 265.128,
    "s": 58.794,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41731,
    "c": 0.17677,
    "h": 297.1
  },
  "luminance": 0.06228
}

Semantic roles & 50–950 ramp

primary
#5A299E
secondary
#99BF64
accent
#E246A1
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A299E

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

Preview Lab → · Contrast checker → · Palette generator →

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