#591271#591271

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

Color values

HEX#591271
RGBrgb(89, 18, 113)
HSLhsl(285, 73%, 26%)
HSVhsv(285, 84%, 44%)
CMYKcmyk(21.2%, 84.1%, 0%, 55.7%)
CIE-LABlab(22.82, 45.35, -38.51)
CIE-LCHlch(22.82, 59.49, 319.66°)
OKLaboklab(35.51% 0.1105 -0.1087)
OKLCHoklch(35.51% 0.155 315.5)
XYZxyz(7.3163, 3.7490, 15.9578)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#591271 #2A7112
analogous
#291271 #591271 #711259
triadic
#591271 #715912 #127159
tetradic
#591271 #712912 #2A7112 #125971
square
#591271 #712912 #2A7112 #125971
split-complementary
#591271 #597112 #127129
monochromatic
#15041A #2F0A3C #591271 #831AA6 #AC23DB

Accessibility & contrast

On white

12.00
#591271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#591271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #591271
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##591271#FFFFFF#000000##FFFFFF
##5912711.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #591271;
/* rgb */ color: rgb(89, 18, 113);
/* oklch */ color: oklch(35.5% 0.155 315.5);
Tailwind
colors: {
  custom: {
    50: '#8c5a9a',
    500: '#591271',
    950: '#000000',
  },
}
SCSS
$custom: #591271;
$custom-light: #8c5a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#591271",
  "rgb": {
    "r": 89,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 284.842,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35512,
    "c": 0.15502,
    "h": 315.5
  },
  "luminance": 0.03749
}

Semantic roles & 50–950 ramp

primary
#591271
secondary
#53A837
accent
#EF3967
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #591271

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

Preview Lab → · Contrast checker → · Palette generator →

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