#5A199E#5A199E

#5A199E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.1% C 0.193 H 299.1°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#5A199E
RGBrgb(90, 25, 158)
HSLhsl(269, 73%, 36%)
HSVhsv(269, 84%, 62%)
CMYKcmyk(43%, 84.2%, 0%, 38%)
CIE-LABlab(27.68, 53.43, -58.78)
CIE-LCHlch(27.68, 79.43, 312.27°)
OKLaboklab(40.12% 0.0935 -0.1683)
OKLCHoklch(40.12% 0.193 299.1)
XYZxyz(10.7341, 5.3374, 32.8058)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A199E #5D9E19
analogous
#191B9E #5A199E #9C199E
triadic
#5A199E #9E5A19 #199E5A
tetradic
#5A199E #9E191B #5D9E19 #199E9C
square
#5A199E #9E191B #5D9E19 #199E9C
split-complementary
#5A199E #9E9C19 #1B9E19
monochromatic
#1E0834 #3C1169 #5A199E #7821D3 #974EE3

Accessibility & contrast

On white

10.16
#5A199E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5A199E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A199E
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A199E#FFFFFF#000000##FFFFFF
##5A199E1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#00409C
Tritanopia (blue-blind)
#49405E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5a199e;
/* rgb */ color: rgb(90, 25, 158);
/* oklch */ color: oklch(40.1% 0.193 299.1);
Tailwind
colors: {
  custom: {
    50: '#9060bc',
    500: '#5a199e',
    950: '#000000',
  },
}
SCSS
$custom: #5a199e;
$custom-light: #9060bc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a199e",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 158
  },
  "hsl": {
    "h": 269.323,
    "s": 72.678,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40121,
    "c": 0.19254,
    "h": 299.1
  },
  "luminance": 0.05338
}

Semantic roles & 50–950 ramp

primary
#5A199E
secondary
#8BC54E
accent
#EF3896
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #5A199E

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

Preview Lab → · Contrast checker → · Palette generator →

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