#5A1670#5A1670

#5A1670 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.150 H 316.2°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#5A1670
RGBrgb(90, 22, 112)
HSLhsl(285, 67%, 26%)
HSVhsv(285, 80%, 44%)
CMYKcmyk(19.6%, 80.4%, 0%, 56.1%)
CIE-LABlab(23.40, 43.95, -36.93)
CIE-LCHlch(23.40, 57.41, 319.96°)
OKLaboklab(35.93% 0.1085 -0.1041)
OKLCHoklch(35.93% 0.15 316.2)
XYZxyz(7.4275, 3.9176, 15.6910)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1670 #2C7016
analogous
#2D1670 #5A1670 #701659
triadic
#5A1670 #705A16 #16705A
tetradic
#5A1670 #702D16 #2C7016 #165970
square
#5A1670 #702D16 #2C7016 #165970
split-complementary
#5A1670 #597016 #16702D
monochromatic
#15051A #310C3D #5A1670 #8320A3 #AC2BD5

Accessibility & contrast

On white

11.78
#5A1670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5A1670 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1670
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1670#FFFFFF#000000##FFFFFF
##5A16701.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#153A6E
Tritanopia (blue-blind)
#592A42
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a1670;
/* rgb */ color: rgb(90, 22, 112);
/* oklch */ color: oklch(35.9% 0.150 316.2);
Tailwind
colors: {
  custom: {
    50: '#8c5c9a',
    500: '#5a1670',
    950: '#000000',
  },
}
SCSS
$custom: #5a1670;
$custom-light: #8c5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1670",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 112
  },
  "hsl": {
    "h": 285.333,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35925,
    "c": 0.15037,
    "h": 316.2
  },
  "luminance": 0.03917
}

Semantic roles & 50–950 ramp

primary
#5A1670
secondary
#56A63C
accent
#EA3E68
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A1670

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

Preview Lab → · Contrast checker → · Palette generator →

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