#581D7E#581D7E

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

Color values

HEX#581D7E
RGBrgb(88, 29, 126)
HSLhsl(276, 63%, 30%)
HSVhsv(276, 77%, 49%)
CMYKcmyk(30.2%, 77%, 0%, 50.6%)
CIE-LABlab(25.14, 43.88, -43.07)
CIE-LCHlch(25.14, 61.48, 315.53°)
OKLaboklab(37.43% 0.0963 -0.1222)
OKLCHoklch(37.43% 0.156 308.2)
XYZxyz(8.2290, 4.4599, 20.1620)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D7E #437E1D
analogous
#271D7E #581D7E #7E1D73
triadic
#581D7E #7E581D #1D7E58
tetradic
#581D7E #7E271D #437E1D #1D737E
square
#581D7E #7E271D #437E1D #1D737E
split-complementary
#581D7E #737E1D #1D7E27
monochromatic
#13061B #35124C #581D7E #7B28B0 #9A42D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##581D7E#FFFFFF#000000##FFFFFF
##581D7E1.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)
#003981
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#52344C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581d7e;
/* rgb */ color: rgb(88, 29, 126);
/* oklch */ color: oklch(37.4% 0.156 308.2);
Tailwind
colors: {
  custom: {
    50: '#8b60a4',
    500: '#581d7e',
    950: '#000000',
  },
}
SCSS
$custom: #581d7e;
$custom-light: #8b60a4;
$custom-dark: #000000;
JSON
{
  "hex": "#581d7e",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 276.495,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37429,
    "c": 0.15564,
    "h": 308.2
  },
  "luminance": 0.0446
}

Semantic roles & 50–950 ramp

primary
#581D7E
secondary
#70B145
accent
#E64282
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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