#5A1683#5A1683

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

Color values

HEX#5A1683
RGBrgb(90, 22, 131)
HSLhsl(277, 71%, 30%)
HSVhsv(277, 83%, 51%)
CMYKcmyk(31.3%, 83.2%, 0%, 48.6%)
CIE-LABlab(24.91, 48.13, -46.58)
CIE-LCHlch(24.91, 66.98, 315.94°)
OKLaboklab(37.46% 0.1043 -0.1324)
OKLCHoklch(37.46% 0.169 308.2)
XYZxyz(8.5992, 4.3863, 21.8620)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1683 #3F8316
analogous
#231683 #5A1683 #831676
triadic
#5A1683 #835A16 #16835A
tetradic
#5A1683 #832316 #3F8316 #167683
square
#5A1683 #832316 #3F8316 #167683
split-complementary
#5A1683 #768316 #168323
monochromatic
#12041A #360D4F #5A1683 #7E1FB7 #9E36DD

Accessibility & contrast

On white

11.19
#5A1683 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1683
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1683#FFFFFF#000000##FFFFFF
##5A16831.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003986
Deuteranopia (green-blind)
#003C81
Tritanopia (blue-blind)
#53334D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a1683;
/* rgb */ color: rgb(90, 22, 131);
/* oklch */ color: oklch(37.5% 0.169 308.2);
Tailwind
colors: {
  custom: {
    50: '#8d5da8',
    500: '#5a1683',
    950: '#000000',
  },
}
SCSS
$custom: #5a1683;
$custom-light: #8d5da8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1683",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 131
  },
  "hsl": {
    "h": 277.431,
    "s": 71.242,
    "l": 30
  },
  "oklch": {
    "l": 0.37461,
    "c": 0.16858,
    "h": 308.2
  },
  "luminance": 0.04386
}

Semantic roles & 50–950 ramp

primary
#5A1683
secondary
#6BB73D
accent
#EE3A7E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1683

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

Preview Lab → · Contrast checker → · Palette generator →

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