#581A7C#581A7C

#581A7C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.157 H 309.4°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#581A7C
RGBrgb(88, 26, 124)
HSLhsl(278, 65%, 29%)
HSVhsv(278, 79%, 49%)
CMYKcmyk(29%, 79%, 0%, 51.4%)
CIE-LABlab(24.54, 44.66, -42.77)
CIE-LCHlch(24.54, 61.84, 316.24°)
OKLaboklab(36.96% 0.0997 -0.1213)
OKLCHoklch(36.96% 0.157 309.4)
XYZxyz(8.0313, 4.2689, 19.4658)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A7C #3E7C1A
analogous
#271A7C #581A7C #7C1A6F
triadic
#581A7C #7C581A #1A7C58
tetradic
#581A7C #7C271A #3E7C1A #1A6F7C
square
#581A7C #7C271A #3E7C1A #1A6F7C
split-complementary
#581A7C #6F7C1A #1A7C27
monochromatic
#120519 #340F49 #581A7C #7C25AF #9D3BD6

Accessibility & contrast

On white

11.33
#581A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#581A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581A7C
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A7C#FFFFFF#000000##FFFFFF
##581A7C1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #581a7c;
/* rgb */ color: rgb(88, 26, 124);
/* oklch */ color: oklch(37.0% 0.157 309.4);
Tailwind
colors: {
  custom: {
    50: '#8b5ea3',
    500: '#581a7c',
    950: '#000000',
  },
}
SCSS
$custom: #581a7c;
$custom-light: #8b5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#581a7c",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 277.959,
    "s": 65.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36959,
    "c": 0.15703,
    "h": 309.4
  },
  "luminance": 0.04269
}

Semantic roles & 50–950 ramp

primary
#581A7C
secondary
#6AB042
accent
#E8407E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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