#581B72#581B72

#581B72 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.3% C 0.146 H 313.6°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#581B72
RGBrgb(88, 27, 114)
HSLhsl(282, 62%, 28%)
HSVhsv(282, 76%, 45%)
CMYKcmyk(22.8%, 76.3%, 0%, 55.3%)
CIE-LABlab(23.91, 41.97, -37.40)
CIE-LCHlch(23.91, 56.22, 318.30°)
OKLaboklab(36.27% 0.1005 -0.1056)
OKLCHoklch(36.27% 0.146 313.6)
XYZxyz(7.4532, 4.0737, 16.3100)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B72 #35721B
analogous
#2D1B72 #581B72 #721B60
triadic
#581B72 #72581B #1B7258
tetradic
#581B72 #722D1B #35721B #1B6072
square
#581B72 #722D1B #35721B #1B6072
split-complementary
#581B72 #60721B #1B722D
monochromatic
#130619 #320F41 #581B72 #7E27A3 #A238D0

Accessibility & contrast

On white

11.57
#581B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#581B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B72
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B72#FFFFFF#000000##FFFFFF
##581B721.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#143A70
Tritanopia (blue-blind)
#552E45
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #581b72;
/* rgb */ color: rgb(88, 27, 114);
/* oklch */ color: oklch(36.3% 0.146 313.6);
Tailwind
colors: {
  custom: {
    50: '#8b5e9b',
    500: '#581b72',
    950: '#000000',
  },
}
SCSS
$custom: #581b72;
$custom-light: #8b5e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#581b72",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 282.069,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.36272,
    "c": 0.14574,
    "h": 313.6
  },
  "luminance": 0.04073
}

Semantic roles & 50–950 ramp

primary
#581B72
secondary
#60A742
accent
#E54373
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #581B72

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

Preview Lab → · Contrast checker → · Palette generator →

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