#5A1699#5A1699

#5A1699 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.4% C 0.190 H 300.8°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#5A1699
RGBrgb(90, 22, 153)
HSLhsl(271, 75%, 34%)
HSVhsv(271, 86%, 60%)
CMYKcmyk(41.2%, 85.6%, 0%, 40%)
CIE-LABlab(26.87, 53.23, -57.04)
CIE-LCHlch(26.87, 78.02, 313.02°)
OKLaboklab(39.42% 0.0973 -0.1632)
OKLCHoklch(39.42% 0.19 300.8)
XYZxyz(10.2517, 5.0473, 30.5649)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1699 #559916
analogous
#191699 #5A1699 #991697
triadic
#5A1699 #995A16 #16995A
tetradic
#5A1699 #991916 #559916 #169799
square
#5A1699 #991916 #559916 #169799
split-complementary
#5A1699 #979916 #169919
monochromatic
#1B072E #3B0E63 #5A1699 #791ECF #9845E4

Accessibility & contrast

On white

10.45
#5A1699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5A1699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1699
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1699#FFFFFF#000000##FFFFFF
##5A16991.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#4B3D5A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a1699;
/* rgb */ color: rgb(90, 22, 153);
/* oklch */ color: oklch(39.4% 0.190 300.8);
Tailwind
colors: {
  custom: {
    50: '#905eb8',
    500: '#5a1699',
    950: '#000000',
  },
}
SCSS
$custom: #5a1699;
$custom-light: #905eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1699",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 153
  },
  "hsl": {
    "h": 271.145,
    "s": 74.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39422,
    "c": 0.18995,
    "h": 300.8
  },
  "luminance": 0.05047
}

Semantic roles & 50–950 ramp

primary
#5A1699
secondary
#83C546
accent
#F13690
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A1699

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

Preview Lab → · Contrast checker → · Palette generator →

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