#581F7E#581F7E

#581F7E is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.6% C 0.153 H 308.0°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#581F7E
RGBrgb(88, 31, 126)
HSLhsl(276, 61%, 31%)
HSVhsv(276, 75%, 49%)
CMYKcmyk(30.2%, 75.4%, 0%, 50.6%)
CIE-LABlab(25.45, 43.00, -42.57)
CIE-LCHlch(25.45, 60.51, 315.29°)
OKLaboklab(37.65% 0.0943 -0.1208)
OKLCHoklch(37.65% 0.153 308)
XYZxyz(8.2796, 4.5612, 20.1788)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F7E #457E1F
analogous
#281F7E #581F7E #7E1F74
triadic
#581F7E #7E581F #1F7E58
tetradic
#581F7E #7E281F #457E1F #1F747E
square
#581F7E #7E281F #457E1F #1F747E
split-complementary
#581F7E #747E1F #1F7E28
monochromatic
#13071C #36134D #581F7E #7A2BAF #9A46D1

Accessibility & contrast

On white

10.98
#581F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581F7E
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F7E#FFFFFF#000000##FFFFFF
##581F7E1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#003D7C
Tritanopia (blue-blind)
#52354D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581f7e;
/* rgb */ color: rgb(88, 31, 126);
/* oklch */ color: oklch(37.6% 0.153 308.0);
Tailwind
colors: {
  custom: {
    50: '#8b61a4',
    500: '#581f7e',
    950: '#000000',
  },
}
SCSS
$custom: #581f7e;
$custom-light: #8b61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#581f7e",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 276,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37648,
    "c": 0.15323,
    "h": 308
  },
  "luminance": 0.04561
}

Semantic roles & 50–950 ramp

primary
#581F7E
secondary
#72B148
accent
#E44484
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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