#5A1684#5A1684

#5A1684 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.170 H 307.8°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#5A1684
RGBrgb(90, 22, 132)
HSLhsl(277, 71%, 30%)
HSVhsv(277, 83%, 52%)
CMYKcmyk(31.8%, 83.3%, 0%, 48.2%)
CIE-LABlab(24.99, 48.35, -47.07)
CIE-LCHlch(24.99, 67.48, 315.77°)
OKLaboklab(37.55% 0.104 -0.1339)
OKLCHoklch(37.55% 0.17 307.8)
XYZxyz(8.6673, 4.4136, 22.2206)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1684 #408416
analogous
#231684 #5A1684 #841677
triadic
#5A1684 #845A16 #16845A
tetradic
#5A1684 #842316 #408416 #167784
square
#5A1684 #842316 #408416 #167784
split-complementary
#5A1684 #778416 #168423
monochromatic
#12051B #360D50 #5A1684 #7E1FB8 #9E37DE

Accessibility & contrast

On white

11.15
#5A1684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5A1684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1684
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1684#FFFFFF#000000##FFFFFF
##5A16841.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003C82
Tritanopia (blue-blind)
#53334E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a1684;
/* rgb */ color: rgb(90, 22, 132);
/* oklch */ color: oklch(37.5% 0.170 307.8);
Tailwind
colors: {
  custom: {
    50: '#8e5da9',
    500: '#5a1684',
    950: '#000000',
  },
}
SCSS
$custom: #5a1684;
$custom-light: #8e5da9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1684",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 277.091,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37546,
    "c": 0.16955,
    "h": 307.8
  },
  "luminance": 0.04413
}

Semantic roles & 50–950 ramp

primary
#5A1684
secondary
#6CB83D
accent
#EE3A7F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1684

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

Preview Lab → · Contrast checker → · Palette generator →

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