#581271#581271

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

Color values

HEX#581271
RGBrgb(88, 18, 113)
HSLhsl(284, 73%, 26%)
HSVhsv(284, 84%, 44%)
CMYKcmyk(22.1%, 84.1%, 0%, 55.7%)
CIE-LABlab(22.65, 45.16, -38.79)
CIE-LCHlch(22.65, 59.53, 319.33°)
OKLaboklab(35.36% 0.1091 -0.1096)
OKLCHoklch(35.36% 0.155 314.9)
XYZxyz(7.2209, 3.6998, 15.9534)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581271 #2B7112
analogous
#291271 #581271 #71125A
triadic
#581271 #715812 #127158
tetradic
#581271 #712912 #2B7112 #125A71
square
#581271 #712912 #2B7112 #125A71
split-complementary
#581271 #5A7112 #127129
monochromatic
#15041A #2F0A3C #581271 #811AA6 #AA23DB

Accessibility & contrast

On white

12.07
#581271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581271
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581271#FFFFFF#000000##FFFFFF
##5812711.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #581271;
/* rgb */ color: rgb(88, 18, 113);
/* oklch */ color: oklch(35.4% 0.155 314.9);
Tailwind
colors: {
  custom: {
    50: '#8b5a9a',
    500: '#581271',
    950: '#000000',
  },
}
SCSS
$custom: #581271;
$custom-light: #8b5a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#581271",
  "rgb": {
    "r": 88,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 284.211,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35358,
    "c": 0.15466,
    "h": 314.9
  },
  "luminance": 0.037
}

Semantic roles & 50–950 ramp

primary
#581271
secondary
#55A837
accent
#EF3969
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #581271

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

Preview Lab → · Contrast checker → · Palette generator →

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