#581173#581173

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

Color values

HEX#581173
RGBrgb(88, 17, 115)
HSLhsl(283, 74%, 26%)
HSVhsv(283, 85%, 45%)
CMYKcmyk(23.5%, 85.2%, 0%, 54.9%)
CIE-LABlab(22.70, 45.90, -40.00)
CIE-LCHlch(22.70, 60.89, 318.93°)
OKLaboklab(35.44% 0.1095 -0.1132)
OKLCHoklch(35.44% 0.157 314)
XYZxyz(7.3189, 3.7137, 16.5476)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581173 #2C7311
analogous
#271173 #581173 #73115D
triadic
#581173 #735811 #117358
tetradic
#581173 #732711 #2C7311 #115D73
square
#581173 #732711 #2C7311 #115D73
split-complementary
#581173 #5D7311 #117327
monochromatic
#14041B #2F093E #581173 #8119A8 #AA21DE

Accessibility & contrast

On white

12.05
#581173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581173
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581173#FFFFFF#000000##FFFFFF
##5811731.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003376
Deuteranopia (green-blind)
#053871
Tritanopia (blue-blind)
#552A43
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #581173;
/* rgb */ color: rgb(88, 17, 115);
/* oklch */ color: oklch(35.4% 0.157 314.0);
Tailwind
colors: {
  custom: {
    50: '#8b5a9c',
    500: '#581173',
    950: '#000000',
  },
}
SCSS
$custom: #581173;
$custom-light: #8b5a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#581173",
  "rgb": {
    "r": 88,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 283.469,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35442,
    "c": 0.15744,
    "h": 314
  },
  "luminance": 0.03713
}

Semantic roles & 50–950 ramp

primary
#581173
secondary
#56AA36
accent
#F1376A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #581173

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

Preview Lab → · Contrast checker → · Palette generator →

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