#591171#591171

#591171 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.4% C 0.156 H 315.5°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#591171
RGBrgb(89, 17, 113)
HSLhsl(285, 74%, 25%)
HSVhsv(285, 85%, 44%)
CMYKcmyk(21.2%, 85%, 0%, 55.7%)
CIE-LABlab(22.71, 45.67, -38.69)
CIE-LCHlch(22.71, 59.85, 319.73°)
OKLaboklab(35.44% 0.1113 -0.1093)
OKLCHoklch(35.44% 0.156 315.5)
XYZxyz(7.3004, 3.7173, 15.9525)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#591171 #297111
analogous
#291171 #591171 #711159
triadic
#591171 #715911 #117159
tetradic
#591171 #712911 #297111 #115971
square
#591171 #712911 #297111 #115971
split-complementary
#591171 #597111 #117129
monochromatic
#15041B #2F093C #591171 #8319A6 #AD21DB

Accessibility & contrast

On white

12.05
#591171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#591171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #591171
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##591171#FFFFFF#000000##FFFFFF
##5911711.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#0D386F
Tritanopia (blue-blind)
#572942
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #591171;
/* rgb */ color: rgb(89, 17, 113);
/* oklch */ color: oklch(35.4% 0.156 315.5);
Tailwind
colors: {
  custom: {
    50: '#8c5a9a',
    500: '#591171',
    950: '#000000',
  },
}
SCSS
$custom: #591171;
$custom-light: #8c5a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#591171",
  "rgb": {
    "r": 89,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 285,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35435,
    "c": 0.15596,
    "h": 315.5
  },
  "luminance": 0.03717
}

Semantic roles & 50–950 ramp

primary
#591171
secondary
#52A836
accent
#F13766
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #591171

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

Preview Lab → · Contrast checker → · Palette generator →

#591171 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva