#581B6F#581B6F

#581B6F is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.0% C 0.143 H 315.0°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#581B6F
RGBrgb(88, 27, 111)
HSLhsl(284, 61%, 27%)
HSVhsv(284, 76%, 44%)
CMYKcmyk(20.7%, 75.7%, 0%, 56.5%)
CIE-LABlab(23.69, 41.30, -35.83)
CIE-LCHlch(23.69, 54.67, 319.06°)
OKLaboklab(36.05% 0.1009 -0.101)
OKLCHoklch(36.05% 0.143 315)
XYZxyz(7.2852, 4.0065, 15.4254)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B6F #326F1B
analogous
#2E1B6F #581B6F #6F1B5C
triadic
#581B6F #6F581B #1B6F58
tetradic
#581B6F #6F2E1B #326F1B #1B5C6F
square
#581B6F #6F2E1B #326F1B #1B5C6F
split-complementary
#581B6F #5C6F1B #1B6F2E
monochromatic
#140619 #310F3E #581B6F #7F27A0 #A536CE

Accessibility & contrast

On white

11.66
#581B6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#581B6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B6F
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B6F#FFFFFF#000000##FFFFFF
##581B6F1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#183A6D
Tritanopia (blue-blind)
#562D43
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #581b6f;
/* rgb */ color: rgb(88, 27, 111);
/* oklch */ color: oklch(36.0% 0.143 315.0);
Tailwind
colors: {
  custom: {
    50: '#8a5e99',
    500: '#581b6f',
    950: '#000000',
  },
}
SCSS
$custom: #581b6f;
$custom-light: #8a5e99;
$custom-dark: #000000;
JSON
{
  "hex": "#581b6f",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 111
  },
  "hsl": {
    "h": 283.571,
    "s": 60.87,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36045,
    "c": 0.14272,
    "h": 315
  },
  "luminance": 0.04006
}

Semantic roles & 50–950 ramp

primary
#581B6F
secondary
#5DA442
accent
#E44470
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #581B6F

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

Preview Lab → · Contrast checker → · Palette generator →

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