#581272#581272

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

Color values

HEX#581272
RGBrgb(88, 18, 114)
HSLhsl(284, 73%, 26%)
HSVhsv(284, 84%, 45%)
CMYKcmyk(22.8%, 84.2%, 0%, 55.3%)
CIE-LABlab(22.73, 45.37, -39.31)
CIE-LCHlch(22.73, 60.03, 319.09°)
OKLaboklab(35.44% 0.1089 -0.1111)
OKLCHoklch(35.44% 0.156 314.4)
XYZxyz(7.2776, 3.7225, 16.2515)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581272 #2C7212
analogous
#281272 #581272 #72125C
triadic
#581272 #725812 #127258
tetradic
#581272 #722812 #2C7212 #125C72
square
#581272 #722812 #2C7212 #125C72
split-complementary
#581272 #5C7212 #127228
monochromatic
#14041A #2F0A3D #581272 #811AA7 #AA23DC

Accessibility & contrast

On white

12.04
#581272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581272
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581272#FFFFFF#000000##FFFFFF
##5812721.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#093870
Tritanopia (blue-blind)
#562A43
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #581272;
/* rgb */ color: rgb(88, 18, 114);
/* oklch */ color: oklch(35.4% 0.156 314.4);
Tailwind
colors: {
  custom: {
    50: '#8b5a9b',
    500: '#581272',
    950: '#000000',
  },
}
SCSS
$custom: #581272;
$custom-light: #8b5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#581272",
  "rgb": {
    "r": 88,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 283.75,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35438,
    "c": 0.15559,
    "h": 314.4
  },
  "luminance": 0.03722
}

Semantic roles & 50–950 ramp

primary
#581272
secondary
#56A937
accent
#EF386A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #581272

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

Preview Lab → · Contrast checker → · Palette generator →

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