#581F7A#581F7A

#581F7A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.149 H 309.6°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#581F7A
RGBrgb(88, 31, 122)
HSLhsl(278, 59%, 30%)
HSVhsv(278, 75%, 48%)
CMYKcmyk(27.9%, 74.6%, 0%, 52.2%)
CIE-LABlab(25.14, 42.05, -40.53)
CIE-LCHlch(25.14, 58.40, 316.05°)
OKLaboklab(37.33% 0.095 -0.1148)
OKLCHoklch(37.33% 0.149 309.6)
XYZxyz(8.0266, 4.4600, 18.8466)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F7A #417A1F
analogous
#2A1F7A #581F7A #7A1F6F
triadic
#581F7A #7A581F #1F7A58
tetradic
#581F7A #7A2A1F #417A1F #1F6F7A
square
#581F7A #7A2A1F #417A1F #1F6F7A
split-complementary
#581F7A #6F7A1F #1F7A2A
monochromatic
#120618 #351349 #581F7A #7B2BAB #9B44CF

Accessibility & contrast

On white

11.10
#581F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#581F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F7A
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F7A#FFFFFF#000000##FFFFFF
##581F7A1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#0B3C78
Tritanopia (blue-blind)
#53344A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581f7a;
/* rgb */ color: rgb(88, 31, 122);
/* oklch */ color: oklch(37.3% 0.149 309.6);
Tailwind
colors: {
  custom: {
    50: '#8b60a1',
    500: '#581f7a',
    950: '#000000',
  },
}
SCSS
$custom: #581f7a;
$custom-light: #8b60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#581f7a",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 277.582,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.37331,
    "c": 0.149,
    "h": 309.6
  },
  "luminance": 0.0446
}

Semantic roles & 50–950 ramp

primary
#581F7A
secondary
#6EAD47
accent
#E34580
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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