#581B7C#581B7C

#581B7C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.156 H 309.3°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#581B7C
RGBrgb(88, 27, 124)
HSLhsl(278, 64%, 30%)
HSVhsv(278, 78%, 49%)
CMYKcmyk(29%, 78.2%, 0%, 51.4%)
CIE-LABlab(24.68, 44.25, -42.54)
CIE-LCHlch(24.68, 61.38, 316.13°)
OKLaboklab(37.06% 0.0987 -0.1207)
OKLCHoklch(37.06% 0.156 309.3)
XYZxyz(8.0538, 4.3140, 19.4733)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B7C #3F7C1B
analogous
#281B7C #581B7C #7C1B70
triadic
#581B7C #7C581B #1B7C58
tetradic
#581B7C #7C281B #3F7C1B #1B707C
square
#581B7C #7C281B #3F7C1B #1B707C
split-complementary
#581B7C #707C1B #1B7C28
monochromatic
#120519 #34104A #581B7C #7C26AE #9C3DD5

Accessibility & contrast

On white

11.27
#581B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#581B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B7C
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B7C#FFFFFF#000000##FFFFFF
##581B7C1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#53324A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581b7c;
/* rgb */ color: rgb(88, 27, 124);
/* oklch */ color: oklch(37.1% 0.156 309.3);
Tailwind
colors: {
  custom: {
    50: '#8b5ea3',
    500: '#581b7c',
    950: '#000000',
  },
}
SCSS
$custom: #581b7c;
$custom-light: #8b5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#581b7c",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 277.732,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37059,
    "c": 0.1559,
    "h": 309.3
  },
  "luminance": 0.04314
}

Semantic roles & 50–950 ramp

primary
#581B7C
secondary
#6BB043
accent
#E7417E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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