#581A7D#581A7D

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

Color values

HEX#581A7D
RGBrgb(88, 26, 125)
HSLhsl(278, 66%, 30%)
HSVhsv(278, 79%, 49%)
CMYKcmyk(29.6%, 79.2%, 0%, 51%)
CIE-LABlab(24.62, 44.89, -43.27)
CIE-LCHlch(24.62, 62.35, 316.05°)
OKLaboklab(37.04% 0.0994 -0.1228)
OKLCHoklch(37.04% 0.158 309)
XYZxyz(8.0948, 4.2943, 19.8005)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A7D #3F7D1A
analogous
#271A7D #581A7D #7D1A71
triadic
#581A7D #7D581A #1A7D58
tetradic
#581A7D #7D271A #3F7D1A #1A717D
square
#581A7D #7D271A #3F7D1A #1A717D
split-complementary
#581A7D #717D1A #1A7D27
monochromatic
#120519 #340F4A #581A7D #7C25B0 #9C3BD6

Accessibility & contrast

On white

11.30
#581A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581A7D
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A7D#FFFFFF#000000##FFFFFF
##581A7D1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#52324B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #581a7d;
/* rgb */ color: rgb(88, 26, 125);
/* oklch */ color: oklch(37.0% 0.158 309.0);
Tailwind
colors: {
  custom: {
    50: '#8b5ea3',
    500: '#581a7d',
    950: '#000000',
  },
}
SCSS
$custom: #581a7d;
$custom-light: #8b5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#581a7d",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 125
  },
  "hsl": {
    "h": 277.576,
    "s": 65.563,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37041,
    "c": 0.15804,
    "h": 309
  },
  "luminance": 0.04294
}

Semantic roles & 50–950 ramp

primary
#581A7D
secondary
#6BB142
accent
#E93F7F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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