#581F9A#581F9A

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

Color values

HEX#581F9A
RGBrgb(88, 31, 154)
HSLhsl(268, 66%, 36%)
HSVhsv(268, 80%, 60%)
CMYKcmyk(42.9%, 79.9%, 0%, 39.6%)
CIE-LABlab(27.81, 49.89, -56.12)
CIE-LCHlch(27.81, 75.09, 311.64°)
OKLaboklab(40.04% 0.0874 -0.1606)
OKLCHoklch(40.04% 0.183 298.5)
XYZxyz(10.3457, 5.3876, 31.0604)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F9A #619A1F
analogous
#1F249A #581F9A #961F9A
triadic
#581F9A #9A581F #1F9A58
tetradic
#581F9A #9A1F24 #619A1F #1F9A96
square
#581F9A #9A1F24 #619A1F #1F9A96
split-complementary
#581F9A #9A961F #249A1F
monochromatic
#1E0A34 #3B1567 #581F9A #7529CD #9556DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##581F9A#FFFFFF#000000##FFFFFF
##581F9A1.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)
#00429D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#47415C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #581f9a;
/* rgb */ color: rgb(88, 31, 154);
/* oklch */ color: oklch(40.0% 0.183 298.5);
Tailwind
colors: {
  custom: {
    50: '#8e62b9',
    500: '#581f9a',
    950: '#000000',
  },
}
SCSS
$custom: #581f9a;
$custom-light: #8e62b9;
$custom-dark: #000000;
JSON
{
  "hex": "#581f9a",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 267.805,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40044,
    "c": 0.18284,
    "h": 298.5
  },
  "luminance": 0.05388
}

Semantic roles & 50–950 ramp

primary
#581F9A
secondary
#8EC154
accent
#E93E9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #581F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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