#5A1672#5A1672

#5A1672 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.152 H 315.3°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#5A1672
RGBrgb(90, 22, 114)
HSLhsl(284, 68%, 27%)
HSVhsv(284, 81%, 45%)
CMYKcmyk(21.1%, 80.7%, 0%, 55.3%)
CIE-LABlab(23.55, 44.38, -37.97)
CIE-LCHlch(23.55, 58.41, 319.44°)
OKLaboklab(36.08% 0.1082 -0.1072)
OKLCHoklch(36.08% 0.152 315.3)
XYZxyz(7.5401, 3.9627, 16.2840)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1672 #2E7216
analogous
#2C1672 #5A1672 #72165C
triadic
#5A1672 #725A16 #16725A
tetradic
#5A1672 #722C16 #2E7216 #165C72
square
#5A1672 #722C16 #2E7216 #165C72
split-complementary
#5A1672 #5C7216 #16722C
monochromatic
#14051A #320C3F #5A1672 #8320A5 #AA2CD6

Accessibility & contrast

On white

11.72
#5A1672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5A1672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1672
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1672#FFFFFF#000000##FFFFFF
##5A16721.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#123A70
Tritanopia (blue-blind)
#582B44
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a1672;
/* rgb */ color: rgb(90, 22, 114);
/* oklch */ color: oklch(36.1% 0.152 315.3);
Tailwind
colors: {
  custom: {
    50: '#8c5c9b',
    500: '#5a1672',
    950: '#000000',
  },
}
SCSS
$custom: #5a1672;
$custom-light: #8c5c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1672",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 284.348,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36079,
    "c": 0.15227,
    "h": 315.3
  },
  "luminance": 0.03962
}

Semantic roles & 50–950 ramp

primary
#5A1672
secondary
#58A83C
accent
#EB3D6A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A1672

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

Preview Lab → · Contrast checker → · Palette generator →

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