#5A2099#5A2099

#5A2099 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.3% C 0.181 H 299.8°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#5A2099
RGBrgb(90, 32, 153)
HSLhsl(269, 65%, 36%)
HSVhsv(269, 79%, 60%)
CMYKcmyk(41.2%, 79.1%, 0%, 40%)
CIE-LABlab(28.13, 49.55, -54.97)
CIE-LCHlch(28.13, 74.01, 312.03°)
OKLaboklab(40.3% 0.0899 -0.1572)
OKLCHoklch(40.3% 0.181 299.8)
XYZxyz(10.4813, 5.5065, 30.6415)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2099 #5F9920
analogous
#202399 #5A2099 #972099
triadic
#5A2099 #995A20 #20995A
tetradic
#5A2099 #992023 #5F9920 #209997
square
#5A2099 #992023 #5F9920 #209997
split-complementary
#5A2099 #999720 #239920
monochromatic
#1E0B34 #3C1566 #5A2099 #782BCC #9757DC

Accessibility & contrast

On white

9.99
#5A2099 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#5A2099 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2099
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2099#FFFFFF#000000##FFFFFF
##5A20991.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#4B415C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5a2099;
/* rgb */ color: rgb(90, 32, 153);
/* oklch */ color: oklch(40.3% 0.181 299.8);
Tailwind
colors: {
  custom: {
    50: '#8f63b8',
    500: '#5a2099',
    950: '#000000',
  },
}
SCSS
$custom: #5a2099;
$custom-light: #8f63b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2099",
  "rgb": {
    "r": 90,
    "g": 32,
    "b": 153
  },
  "hsl": {
    "h": 268.76,
    "s": 65.405,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40298,
    "c": 0.18108,
    "h": 299.8
  },
  "luminance": 0.05507
}

Semantic roles & 50–950 ramp

primary
#5A2099
secondary
#8DC055
accent
#E83F97
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5A2099

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

Preview Lab → · Contrast checker → · Palette generator →

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