#581B74#581B74

#581B74 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.148 H 312.7°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#581B74
RGBrgb(88, 27, 116)
HSLhsl(281, 62%, 28%)
HSVhsv(281, 77%, 45%)
CMYKcmyk(24.1%, 76.7%, 0%, 54.5%)
CIE-LABlab(24.06, 42.42, -38.44)
CIE-LCHlch(24.06, 57.25, 317.82°)
OKLaboklab(36.43% 0.1002 -0.1086)
OKLCHoklch(36.43% 0.148 312.7)
XYZxyz(7.5683, 4.1197, 16.9161)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B74 #37741B
analogous
#2C1B74 #581B74 #741B63
triadic
#581B74 #74581B #1B7458
tetradic
#581B74 #742C1B #37741B #1B6374
square
#581B74 #742C1B #37741B #1B6374
split-complementary
#581B74 #63741B #1B742C
monochromatic
#130619 #320F42 #581B74 #7E27A6 #A139D1

Accessibility & contrast

On white

11.51
#581B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#581B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B74
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B74#FFFFFF#000000##FFFFFF
##581B741.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#113A72
Tritanopia (blue-blind)
#552F46
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #581b74;
/* rgb */ color: rgb(88, 27, 116);
/* oklch */ color: oklch(36.4% 0.148 312.7);
Tailwind
colors: {
  custom: {
    50: '#8b5e9d',
    500: '#581b74',
    950: '#000000',
  },
}
SCSS
$custom: #581b74;
$custom-light: #8b5e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#581b74",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 281.124,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36425,
    "c": 0.14777,
    "h": 312.7
  },
  "luminance": 0.0412
}

Semantic roles & 50–950 ramp

primary
#581B74
secondary
#62A942
accent
#E54276
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #581B74

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

Preview Lab → · Contrast checker → · Palette generator →

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