#5A2999#5A2999

#5A2999 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.171 H 298.5°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#5A2999
RGBrgb(90, 41, 153)
HSLhsl(266, 58%, 38%)
HSVhsv(266, 73%, 60%)
CMYKcmyk(41.2%, 73.2%, 0%, 40%)
CIE-LABlab(29.56, 45.47, -52.64)
CIE-LCHlch(29.56, 69.56, 310.82°)
OKLaboklab(41.3% 0.0817 -0.1504)
OKLCHoklch(41.3% 0.171 298.5)
XYZxyz(10.7577, 6.0593, 30.7336)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2999 #689929
analogous
#293099 #5A2999 #922999
triadic
#5A2999 #995A29 #29995A
tetradic
#5A2999 #992930 #689929 #299992
square
#5A2999 #992930 #689929 #299992
split-complementary
#5A2999 #999229 #309929
monochromatic
#210F38 #3E1C69 #5A2999 #7636C9 #9766D6

Accessibility & contrast

On white

9.49
#5A2999 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#5A2999 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2999
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2999#FFFFFF#000000##FFFFFF
##5A29991.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#4B455E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5a2999;
/* rgb */ color: rgb(90, 41, 153);
/* oklch */ color: oklch(41.3% 0.171 298.5);
Tailwind
colors: {
  custom: {
    50: '#8e67b8',
    500: '#5a2999',
    950: '#000000',
  },
}
SCSS
$custom: #5a2999;
$custom-light: #8e67b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2999",
  "rgb": {
    "r": 90,
    "g": 41,
    "b": 153
  },
  "hsl": {
    "h": 266.25,
    "s": 57.732,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41304,
    "c": 0.17114,
    "h": 298.5
  },
  "luminance": 0.06059
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A2999

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

Preview Lab → · Contrast checker → · Palette generator →

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