#581F72#581F72

#581F72 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 36.7% C 0.141 H 313.1°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#581F72
RGBrgb(88, 31, 114)
HSLhsl(281, 57%, 28%)
HSVhsv(281, 73%, 45%)
CMYKcmyk(22.8%, 72.8%, 0%, 55.3%)
CIE-LABlab(24.54, 40.19, -36.38)
CIE-LCHlch(24.54, 54.21, 317.84°)
OKLaboklab(36.72% 0.096 -0.1026)
OKLCHoklch(36.72% 0.141 313.1)
XYZxyz(7.5512, 4.2698, 16.3427)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F72 #39721F
analogous
#2E1F72 #581F72 #721F62
triadic
#581F72 #72581F #1F7258
tetradic
#581F72 #722E1F #39721F #1F6272
square
#581F72 #722E1F #39721F #1F6272
split-complementary
#581F72 #62721F #1F722E
monochromatic
#130718 #331242 #581F72 #7D2CA2 #A040CB

Accessibility & contrast

On white

11.33
#581F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581F72
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F72#FFFFFF#000000##FFFFFF
##581F721.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#183C70
Tritanopia (blue-blind)
#553046
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #581f72;
/* rgb */ color: rgb(88, 31, 114);
/* oklch */ color: oklch(36.7% 0.141 313.1);
Tailwind
colors: {
  custom: {
    50: '#8a609b',
    500: '#581f72',
    950: '#000000',
  },
}
SCSS
$custom: #581f72;
$custom-light: #8a609b;
$custom-dark: #000000;
JSON
{
  "hex": "#581f72",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 281.205,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3672,
    "c": 0.14055,
    "h": 313.1
  },
  "luminance": 0.0427
}

Semantic roles & 50–950 ramp

primary
#581F72
secondary
#65A647
accent
#E04777
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #581F72

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

Preview Lab → · Contrast checker → · Palette generator →

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