#581A9D#581A9D

#581A9D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.9% C 0.190 H 298.2°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#581A9D
RGBrgb(88, 26, 157)
HSLhsl(268, 72%, 36%)
HSVhsv(268, 83%, 62%)
CMYKcmyk(43.9%, 83.4%, 0%, 38.4%)
CIE-LABlab(27.43, 52.55, -58.58)
CIE-LCHlch(27.43, 78.70, 311.89°)
OKLaboklab(39.86% 0.0901 -0.1678)
OKLCHoklch(39.86% 0.19 298.2)
XYZxyz(10.4781, 5.2476, 32.3526)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A9D #5F9D1A
analogous
#1A1D9D #581A9D #991A9D
triadic
#581A9D #9D581A #1A9D58
tetradic
#581A9D #9D1A1D #5F9D1A #1A9D99
square
#581A9D #9D1A1D #5F9D1A #1A9D99
split-complementary
#581A9D #9D991A #1D9D1A
monochromatic
#1D0934 #3B1168 #581A9D #7523D2 #954FE2

Accessibility & contrast

On white

10.25
#581A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#581A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581A9D
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A9D#FFFFFF#000000##FFFFFF
##581A9D1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#003F9B
Tritanopia (blue-blind)
#46405D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #581a9d;
/* rgb */ color: rgb(88, 26, 157);
/* oklch */ color: oklch(39.9% 0.190 298.2);
Tailwind
colors: {
  custom: {
    50: '#8f60bb',
    500: '#581a9d',
    950: '#000000',
  },
}
SCSS
$custom: #581a9d;
$custom-light: #8f60bb;
$custom-dark: #000000;
JSON
{
  "hex": "#581a9d",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 157
  },
  "hsl": {
    "h": 268.397,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39863,
    "c": 0.19045,
    "h": 298.2
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

primary
#581A9D
secondary
#8DC44E
accent
#EE3999
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #581A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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