#5A1673#5A1673

#5A1673 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.153 H 314.8°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#5A1673
RGBrgb(90, 22, 115)
HSLhsl(284, 68%, 27%)
HSVhsv(284, 81%, 45%)
CMYKcmyk(21.7%, 80.9%, 0%, 54.9%)
CIE-LABlab(23.62, 44.59, -38.49)
CIE-LCHlch(23.62, 58.91, 319.20°)
OKLaboklab(36.16% 0.108 -0.1087)
OKLCHoklch(36.16% 0.153 314.8)
XYZxyz(7.5974, 3.9856, 16.5854)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1673 #2F7316
analogous
#2C1673 #5A1673 #73165E
triadic
#5A1673 #735A16 #16735A
tetradic
#5A1673 #732C16 #2F7316 #165E73
square
#5A1673 #732C16 #2F7316 #165E73
split-complementary
#5A1673 #5E7316 #16732C
monochromatic
#14051A #320C40 #5A1673 #8220A6 #A92DD7

Accessibility & contrast

On white

11.69
#5A1673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5A1673 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1673
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1673#FFFFFF#000000##FFFFFF
##5A16731.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#103A71
Tritanopia (blue-blind)
#582C44
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a1673;
/* rgb */ color: rgb(90, 22, 115);
/* oklch */ color: oklch(36.2% 0.153 314.8);
Tailwind
colors: {
  custom: {
    50: '#8c5c9c',
    500: '#5a1673',
    950: '#000000',
  },
}
SCSS
$custom: #5a1673;
$custom-light: #8c5c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1673",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 115
  },
  "hsl": {
    "h": 283.871,
    "s": 67.883,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36156,
    "c": 0.15322,
    "h": 314.8
  },
  "luminance": 0.03985
}

Semantic roles & 50–950 ramp

primary
#5A1673
secondary
#59A93C
accent
#EB3D6C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A1673

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

Preview Lab → · Contrast checker → · Palette generator →

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