#581F71#581F71

#581F71 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.6% C 0.140 H 313.6°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#581F71
RGBrgb(88, 31, 113)
HSLhsl(282, 57%, 28%)
HSVhsv(282, 73%, 44%)
CMYKcmyk(22.1%, 72.6%, 0%, 55.7%)
CIE-LABlab(24.47, 39.96, -35.86)
CIE-LCHlch(24.47, 53.69, 318.10°)
OKLaboklab(36.65% 0.0961 -0.1011)
OKLCHoklch(36.65% 0.14 313.6)
XYZxyz(7.4946, 4.2472, 16.0446)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F71 #38711F
analogous
#2F1F71 #581F71 #711F61
triadic
#581F71 #71581F #1F7158
tetradic
#581F71 #712F1F #38711F #1F6171
square
#581F71 #712F1F #38711F #1F6171
split-complementary
#581F71 #61711F #1F712F
monochromatic
#130718 #331241 #581F71 #7D2CA1 #A040CB

Accessibility & contrast

On white

11.36
#581F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#581F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F71
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F71#FFFFFF#000000##FFFFFF
##581F711.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#193B6F
Tritanopia (blue-blind)
#563045
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #581f71;
/* rgb */ color: rgb(88, 31, 113);
/* oklch */ color: oklch(36.6% 0.140 313.6);
Tailwind
colors: {
  custom: {
    50: '#8a609a',
    500: '#581f71',
    950: '#000000',
  },
}
SCSS
$custom: #581f71;
$custom-light: #8a609a;
$custom-dark: #000000;
JSON
{
  "hex": "#581f71",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 281.707,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36646,
    "c": 0.13951,
    "h": 313.6
  },
  "luminance": 0.04247
}

Semantic roles & 50–950 ramp

primary
#581F71
secondary
#64A547
accent
#E04876
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #581F71

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

Preview Lab → · Contrast checker → · Palette generator →

#581F71 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva