#5A299C#5A299C

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

Color values

HEX#5A299C
RGBrgb(90, 41, 156)
HSLhsl(266, 58%, 39%)
HSVhsv(266, 74%, 61%)
CMYKcmyk(42.3%, 73.7%, 0%, 38.8%)
CIE-LABlab(29.81, 46.26, -54.06)
CIE-LCHlch(29.81, 71.15, 310.55°)
OKLaboklab(41.56% 0.081 -0.1546)
OKLCHoklch(41.56% 0.175 297.7)
XYZxyz(11.0086, 6.1596, 32.0550)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A299C #6B9C29
analogous
#29319C #5A299C #93299C
triadic
#5A299C #9C5A29 #299C5A
tetradic
#5A299C #9C2931 #6B9C29 #299C93
square
#5A299C #9C2931 #6B9C29 #299C93
split-complementary
#5A299C #9C9329 #319C29
monochromatic
#22103B #3E1C6C #5A299C #7638CB #9768D7

Accessibility & contrast

On white

9.41
#5A299C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A299C
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A299C#FFFFFF#000000##FFFFFF
##5A299C1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479F
Deuteranopia (green-blind)
#00459A
Tritanopia (blue-blind)
#494660
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a299c;
/* rgb */ color: rgb(90, 41, 156);
/* oklch */ color: oklch(41.6% 0.175 297.7);
Tailwind
colors: {
  custom: {
    50: '#8f67ba',
    500: '#5a299c',
    950: '#000000',
  },
}
SCSS
$custom: #5a299c;
$custom-light: #8f67ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5a299c",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 156
  },
  "hsl": {
    "h": 265.565,
    "s": 58.376,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41559,
    "c": 0.17453,
    "h": 297.7
  },
  "luminance": 0.0616
}

Semantic roles & 50–950 ramp

primary
#5A299C
secondary
#97BE63
accent
#E2469F
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #5A299C

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

Preview Lab → · Contrast checker → · Palette generator →

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