#581172#581172

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

Color values

HEX#581172
RGBrgb(88, 17, 114)
HSLhsl(284, 74%, 26%)
HSVhsv(284, 85%, 45%)
CMYKcmyk(22.8%, 85.1%, 0%, 55.3%)
CIE-LABlab(22.62, 45.69, -39.49)
CIE-LCHlch(22.62, 60.39, 319.16°)
OKLaboklab(35.36% 0.1097 -0.1116)
OKLCHoklch(35.36% 0.157 314.5)
XYZxyz(7.2617, 3.6908, 16.2462)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581172 #2B7211
analogous
#281172 #581172 #72115B
triadic
#581172 #725811 #117258
tetradic
#581172 #722811 #2B7211 #115B72
square
#581172 #722811 #2B7211 #115B72
split-complementary
#581172 #5B7211 #117228
monochromatic
#15041B #2F093D #581172 #8119A7 #AA21DD

Accessibility & contrast

On white

12.08
#581172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581172
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581172#FFFFFF#000000##FFFFFF
##5811721.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#083870
Tritanopia (blue-blind)
#562943
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #581172;
/* rgb */ color: rgb(88, 17, 114);
/* oklch */ color: oklch(35.4% 0.157 314.5);
Tailwind
colors: {
  custom: {
    50: '#8b5a9b',
    500: '#581172',
    950: '#000000',
  },
}
SCSS
$custom: #581172;
$custom-light: #8b5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#581172",
  "rgb": {
    "r": 88,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 283.918,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35361,
    "c": 0.15652,
    "h": 314.5
  },
  "luminance": 0.03691
}

Semantic roles & 50–950 ramp

primary
#581172
secondary
#55A936
accent
#F13769
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #581172

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

Preview Lab → · Contrast checker → · Palette generator →

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