#581B7F#581B7F

#581B7F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.159 H 308.1°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#581B7F
RGBrgb(88, 27, 127)
HSLhsl(277, 65%, 30%)
HSVhsv(277, 79%, 50%)
CMYKcmyk(30.7%, 78.7%, 0%, 50.2%)
CIE-LABlab(24.92, 44.95, -44.05)
CIE-LCHlch(24.92, 62.94, 315.58°)
OKLaboklab(37.3% 0.0981 -0.1251)
OKLCHoklch(37.3% 0.159 308.1)
XYZxyz(8.2464, 4.3910, 20.4877)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B7F #427F1B
analogous
#261B7F #581B7F #7F1B74
triadic
#581B7F #7F581B #1B7F58
tetradic
#581B7F #7F261B #427F1B #1B747F
square
#581B7F #7F261B #427F1B #1B747F
split-complementary
#581B7F #747F1B #1B7F26
monochromatic
#12061A #35104D #581B7F #7B26B1 #9B3ED6

Accessibility & contrast

On white

11.18
#581B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#581B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B7F
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B7F#FFFFFF#000000##FFFFFF
##581B7F1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#52344C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581b7f;
/* rgb */ color: rgb(88, 27, 127);
/* oklch */ color: oklch(37.3% 0.159 308.1);
Tailwind
colors: {
  custom: {
    50: '#8b5fa5',
    500: '#581b7f',
    950: '#000000',
  },
}
SCSS
$custom: #581b7f;
$custom-light: #8b5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#581b7f",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 276.6,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.37304,
    "c": 0.15896,
    "h": 308.1
  },
  "luminance": 0.04391
}

Semantic roles & 50–950 ramp

primary
#581B7F
secondary
#6FB343
accent
#E84081
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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