#581FA9#581FA9

#581FA9 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.4% C 0.199 H 294.6°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#581FA9
RGBrgb(88, 31, 169)
HSLhsl(265, 69%, 39%)
HSVhsv(265, 82%, 66%)
CMYKcmyk(47.9%, 81.7%, 0%, 33.7%)
CIE-LABlab(29.21, 53.68, -62.94)
CIE-LCHlch(29.21, 82.72, 310.46°)
OKLaboklab(41.44% 0.0826 -0.1806)
OKLCHoklch(41.44% 0.199 294.6)
XYZxyz(11.6740, 5.9189, 38.0558)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581FA9 #70A91F
analogous
#1F2BA9 #581FA9 #9D1FA9
triadic
#581FA9 #A9581F #1FA958
tetradic
#581FA9 #A91F2B #70A91F #1FA99D
square
#581FA9 #A91F2B #70A91F #1FA99D
split-complementary
#581FA9 #A99D1F #2BA91F
monochromatic
#220C42 #3D1675 #581FA9 #742DD8 #9660E2

Accessibility & contrast

On white

9.62
#581FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#581FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581FA9
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581FA9#FFFFFF#000000##FFFFFF
##581FA91.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#404765
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #581fa9;
/* rgb */ color: rgb(88, 31, 169);
/* oklch */ color: oklch(41.4% 0.199 294.6);
Tailwind
colors: {
  custom: {
    50: '#9063c4',
    500: '#581fa9',
    950: '#000000',
  },
}
SCSS
$custom: #581fa9;
$custom-light: #9063c4;
$custom-dark: #000000;
JSON
{
  "hex": "#581fa9",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 264.783,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.41439,
    "c": 0.19858,
    "h": 294.6
  },
  "luminance": 0.05919
}

Semantic roles & 50–950 ramp

primary
#581FA9
secondary
#9BC75D
accent
#EC3CA3
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #581FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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