#581872#581872

#581872 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.0% C 0.149 H 313.9°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#581872
RGBrgb(88, 24, 114)
HSLhsl(283, 65%, 27%)
HSVhsv(283, 79%, 45%)
CMYKcmyk(22.8%, 78.9%, 0%, 55.3%)
CIE-LABlab(23.48, 43.20, -38.10)
CIE-LCHlch(23.48, 57.60, 318.59°)
OKLaboklab(35.97% 0.1035 -0.1076)
OKLCHoklch(35.97% 0.149 313.9)
XYZxyz(7.3879, 3.9431, 16.2883)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581872 #327218
analogous
#2B1872 #581872 #72185F
triadic
#581872 #725818 #187258
tetradic
#581872 #722B18 #327218 #185F72
square
#581872 #722B18 #327218 #185F72
split-complementary
#581872 #5F7218 #18722B
monochromatic
#140519 #310D3F #581872 #7F23A5 #A531D4

Accessibility & contrast

On white

11.74
#581872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#581872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581872
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581872#FFFFFF#000000##FFFFFF
##5818721.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#103970
Tritanopia (blue-blind)
#552C44
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #581872;
/* rgb */ color: rgb(88, 24, 114);
/* oklch */ color: oklch(36.0% 0.149 313.9);
Tailwind
colors: {
  custom: {
    50: '#8b5d9b',
    500: '#581872',
    950: '#000000',
  },
}
SCSS
$custom: #581872;
$custom-light: #8b5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#581872",
  "rgb": {
    "r": 88,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 282.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35966,
    "c": 0.14932,
    "h": 313.9
  },
  "luminance": 0.03943
}

Semantic roles & 50–950 ramp

primary
#581872
secondary
#5DA73E
accent
#E84070
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #581872

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

Preview Lab → · Contrast checker → · Palette generator →

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