#581F74#581F74

#581F74 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 36.9% C 0.143 H 312.2°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#581F74
RGBrgb(88, 31, 116)
HSLhsl(280, 58%, 29%)
HSVhsv(280, 73%, 45%)
CMYKcmyk(24.1%, 73.3%, 0%, 54.5%)
CIE-LABlab(24.69, 40.65, -37.43)
CIE-LCHlch(24.69, 55.26, 317.36°)
OKLaboklab(36.87% 0.0958 -0.1057)
OKLCHoklch(36.87% 0.143 312.2)
XYZxyz(7.6663, 4.3158, 16.9488)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F74 #3B741F
analogous
#2E1F74 #581F74 #741F66
triadic
#581F74 #74581F #1F7458
tetradic
#581F74 #742E1F #3B741F #1F6674
square
#581F74 #742E1F #3B741F #1F6674
split-complementary
#581F74 #66741F #1F742E
monochromatic
#120618 #331244 #581F74 #7D2CA4 #9E41CC

Accessibility & contrast

On white

11.27
#581F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#581F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F74
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F74#FFFFFF#000000##FFFFFF
##581F741.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003876
Deuteranopia (green-blind)
#163C72
Tritanopia (blue-blind)
#553147
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581f74;
/* rgb */ color: rgb(88, 31, 116);
/* oklch */ color: oklch(36.9% 0.143 312.2);
Tailwind
colors: {
  custom: {
    50: '#8a609d',
    500: '#581f74',
    950: '#000000',
  },
}
SCSS
$custom: #581f74;
$custom-light: #8a609d;
$custom-dark: #000000;
JSON
{
  "hex": "#581f74",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 280.235,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3687,
    "c": 0.14266,
    "h": 312.2
  },
  "luminance": 0.04316
}

Semantic roles & 50–950 ramp

primary
#581F74
secondary
#67A847
accent
#E1477A
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #581F74

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

Preview Lab → · Contrast checker → · Palette generator →

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