#581F7D#581F7D

#581F7D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.152 H 308.4°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#581F7D
RGBrgb(88, 31, 125)
HSLhsl(276, 60%, 31%)
HSVhsv(276, 75%, 49%)
CMYKcmyk(29.6%, 75.2%, 0%, 51%)
CIE-LABlab(25.37, 42.76, -42.06)
CIE-LCHlch(25.37, 59.98, 315.47°)
OKLaboklab(37.57% 0.0945 -0.1193)
OKLCHoklch(37.57% 0.152 308.4)
XYZxyz(8.2154, 4.5355, 19.8407)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F7D #447D1F
analogous
#291F7D #581F7D #7D1F73
triadic
#581F7D #7D581F #1F7D58
tetradic
#581F7D #7D291F #447D1F #1F737D
square
#581F7D #7D291F #447D1F #1F737D
split-complementary
#581F7D #737D1F #1F7D29
monochromatic
#13071B #35134C #581F7D #7B2BAE #9A45D1

Accessibility & contrast

On white

11.01
#581F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#581F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F7D
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F7D#FFFFFF#000000##FFFFFF
##581F7D1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#033D7B
Tritanopia (blue-blind)
#52354C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581f7d;
/* rgb */ color: rgb(88, 31, 125);
/* oklch */ color: oklch(37.6% 0.152 308.4);
Tailwind
colors: {
  custom: {
    50: '#8b60a3',
    500: '#581f7d',
    950: '#000000',
  },
}
SCSS
$custom: #581f7d;
$custom-light: #8b60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#581f7d",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 276.383,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37568,
    "c": 0.15218,
    "h": 308.4
  },
  "luminance": 0.04535
}

Semantic roles & 50–950 ramp

primary
#581F7D
secondary
#71B048
accent
#E34483
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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