#581AA1#581AA1

#581AA1 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.2% C 0.195 H 297.1°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#581AA1
RGBrgb(88, 26, 161)
HSLhsl(268, 72%, 37%)
HSVhsv(268, 84%, 63%)
CMYKcmyk(45.3%, 83.9%, 0%, 36.9%)
CIE-LABlab(27.81, 53.53, -60.39)
CIE-LCHlch(27.81, 80.71, 311.55°)
OKLaboklab(40.24% 0.0887 -0.1731)
OKLCHoklch(40.24% 0.195 297.1)
XYZxyz(10.8252, 5.3865, 34.1806)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581AA1 #63A11A
analogous
#1A1FA1 #581AA1 #9C1AA1
triadic
#581AA1 #A1581A #1AA158
tetradic
#581AA1 #A11A1F #63A11A #1AA19C
square
#581AA1 #A11A1F #63A11A #1AA19C
split-complementary
#581AA1 #A19C1A #1FA11A
monochromatic
#1E0938 #3B116C #581AA1 #7523D6 #9552E3

Accessibility & contrast

On white

10.11
#581AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#581AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581AA1
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581AA1#FFFFFF#000000##FFFFFF
##581AA11.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00409F
Tritanopia (blue-blind)
#444260
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #581aa1;
/* rgb */ color: rgb(88, 26, 161);
/* oklch */ color: oklch(40.2% 0.195 297.1);
Tailwind
colors: {
  custom: {
    50: '#8f60be',
    500: '#581aa1',
    950: '#000000',
  },
}
SCSS
$custom: #581aa1;
$custom-light: #8f60be;
$custom-dark: #000000;
JSON
{
  "hex": "#581aa1",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 161
  },
  "hsl": {
    "h": 267.556,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.40241,
    "c": 0.1945,
    "h": 297.1
  },
  "luminance": 0.05387
}

Semantic roles & 50–950 ramp

primary
#581AA1
secondary
#90C651
accent
#EF399B
background
#F9F6FB
surface
#F2EBF7
border
#CCC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #581AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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