#581B62#581B62

#581B62 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.130 H 321.7°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#581B62
RGBrgb(88, 27, 98)
HSLhsl(292, 57%, 25%)
HSVhsv(292, 72%, 38%)
CMYKcmyk(10.2%, 72.4%, 0%, 61.6%)
CIE-LABlab(22.80, 38.51, -28.80)
CIE-LCHlch(22.80, 48.09, 323.20°)
OKLaboklab(35.12% 0.1019 -0.0804)
OKLCHoklch(35.12% 0.13 321.7)
XYZxyz(6.6208, 3.7408, 11.9262)
Luminance0.0374 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B62 #25621B
analogous
#351B62 #581B62 #621B49
triadic
#581B62 #62581B #1B6258
tetradic
#581B62 #62351B #25621B #1B4962
square
#581B62 #62351B #25621B #1B4962
split-complementary
#581B62 #49621B #1B6235
monochromatic
#160718 #2D0E32 #581B62 #832892 #AE35C2

Accessibility & contrast

On white

12.01
#581B62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#581B62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B62
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B62#FFFFFF#000000##FFFFFF
##581B621.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053264
Deuteranopia (green-blind)
#243960
Tritanopia (blue-blind)
#59273C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #581b62;
/* rgb */ color: rgb(88, 27, 98);
/* oklch */ color: oklch(35.1% 0.130 321.7);
Tailwind
colors: {
  custom: {
    50: '#8a5d8f',
    500: '#581b62',
    950: '#000000',
  },
}
SCSS
$custom: #581b62;
$custom-light: #8a5d8f;
$custom-dark: #000000;
JSON
{
  "hex": "#581b62",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 98
  },
  "hsl": {
    "h": 291.549,
    "s": 56.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.35116,
    "c": 0.12978,
    "h": 321.7
  },
  "luminance": 0.0374
}

Semantic roles & 50–950 ramp

primary
#581B62
secondary
#4D9841
accent
#E0485D
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #581B62

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

Preview Lab → · Contrast checker → · Palette generator →

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