#581F76#581F76

#581F76 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.145 H 311.3°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#581F76
RGBrgb(88, 31, 118)
HSLhsl(279, 58%, 29%)
HSVhsv(279, 74%, 46%)
CMYKcmyk(25.4%, 73.7%, 0%, 53.7%)
CIE-LABlab(24.84, 41.11, -38.47)
CIE-LCHlch(24.84, 56.31, 316.90°)
OKLaboklab(37.02% 0.0956 -0.1088)
OKLCHoklch(37.02% 0.145 311.3)
XYZxyz(7.7839, 4.3629, 17.5681)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F76 #3D761F
analogous
#2D1F76 #581F76 #761F69
triadic
#581F76 #76581F #1F7658
tetradic
#581F76 #762D1F #3D761F #1F6976
square
#581F76 #762D1F #3D761F #1F6976
split-complementary
#581F76 #69761F #1F762D
monochromatic
#120618 #341246 #581F76 #7C2CA6 #9D42CD

Accessibility & contrast

On white

11.21
#581F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#581F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F76
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F76#FFFFFF#000000##FFFFFF
##581F761.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#133C74
Tritanopia (blue-blind)
#543248
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581f76;
/* rgb */ color: rgb(88, 31, 118);
/* oklch */ color: oklch(37.0% 0.145 311.3);
Tailwind
colors: {
  custom: {
    50: '#8b609e',
    500: '#581f76',
    950: '#000000',
  },
}
SCSS
$custom: #581f76;
$custom-light: #8b609e;
$custom-dark: #000000;
JSON
{
  "hex": "#581f76",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 279.31,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37022,
    "c": 0.14477,
    "h": 311.3
  },
  "luminance": 0.04363
}

Semantic roles & 50–950 ramp

primary
#581F76
secondary
#69AA47
accent
#E2467C
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #581F76

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

Preview Lab → · Contrast checker → · Palette generator →

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