#581D7C#581D7C

#581D7C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.154 H 309.0°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#581D7C
RGBrgb(88, 29, 124)
HSLhsl(277, 62%, 30%)
HSVhsv(277, 77%, 49%)
CMYKcmyk(29%, 76.6%, 0%, 51.4%)
CIE-LABlab(24.98, 43.41, -42.06)
CIE-LCHlch(24.98, 60.44, 315.90°)
OKLaboklab(37.27% 0.0967 -0.1193)
OKLCHoklch(37.27% 0.154 309)
XYZxyz(8.1012, 4.4088, 19.4891)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581D7C #417C1D
analogous
#281D7C #581D7C #7C1D71
triadic
#581D7C #7C581D #1D7C58
tetradic
#581D7C #7C281D #417C1D #1D717C
square
#581D7C #7C281D #417C1D #1D717C
split-complementary
#581D7C #717C1D #1D7C28
monochromatic
#120619 #35114A #581D7C #7B29AE #9B41D3

Accessibility & contrast

On white

11.16
#581D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#581D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581D7C
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581D7C#FFFFFF#000000##FFFFFF
##581D7C1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#023C7A
Tritanopia (blue-blind)
#53334B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581d7c;
/* rgb */ color: rgb(88, 29, 124);
/* oklch */ color: oklch(37.3% 0.154 309.0);
Tailwind
colors: {
  custom: {
    50: '#8b5fa3',
    500: '#581d7c',
    950: '#000000',
  },
}
SCSS
$custom: #581d7c;
$custom-light: #8b5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#581d7c",
  "rgb": {
    "r": 88,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 277.263,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.37268,
    "c": 0.15356,
    "h": 309
  },
  "luminance": 0.04409
}

Semantic roles & 50–950 ramp

primary
#581D7C
secondary
#6EB045
accent
#E54380
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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