#581A8A#581A8A

#581A8A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.1% C 0.171 H 304.2°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#581A8A
RGBrgb(88, 26, 138)
HSLhsl(273, 68%, 32%)
HSVhsv(273, 81%, 54%)
CMYKcmyk(36.2%, 81.2%, 0%, 45.9%)
CIE-LABlab(25.71, 47.95, -49.67)
CIE-LCHlch(25.71, 69.04, 313.99°)
OKLaboklab(38.14% 0.0962 -0.1416)
OKLCHoklch(38.14% 0.171 304.2)
XYZxyz(8.9803, 4.6485, 24.4640)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A8A #4C8A1A
analogous
#201A8A #581A8A #8A1A84
triadic
#581A8A #8A581A #1A8A58
tetradic
#581A8A #8A201A #4C8A1A #1A848A
square
#581A8A #8A201A #4C8A1A #1A848A
split-complementary
#581A8A #848A1A #1A8A20
monochromatic
#160723 #371057 #581A8A #7924BD #9743DC

Accessibility & contrast

On white

10.88
#581A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#581A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581A8A
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A8A#FFFFFF#000000##FFFFFF
##581A8A1.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#4E3852
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #581a8a;
/* rgb */ color: rgb(88, 26, 138);
/* oklch */ color: oklch(38.1% 0.171 304.2);
Tailwind
colors: {
  custom: {
    50: '#8d5fad',
    500: '#581a8a',
    950: '#000000',
  },
}
SCSS
$custom: #581a8a;
$custom-light: #8d5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#581a8a",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 138
  },
  "hsl": {
    "h": 273.214,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.38141,
    "c": 0.17119,
    "h": 304.2
  },
  "luminance": 0.04648
}

Semantic roles & 50–950 ramp

primary
#581A8A
secondary
#79BD43
accent
#EB3D8B
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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