#581C7C#581C7C

#581C7C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.155 H 309.2°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#581C7C
RGBrgb(88, 28, 124)
HSLhsl(278, 63%, 30%)
HSVhsv(278, 77%, 49%)
CMYKcmyk(29%, 77.4%, 0%, 51.4%)
CIE-LABlab(24.83, 43.84, -42.30)
CIE-LCHlch(24.83, 60.92, 316.02°)
OKLaboklab(37.16% 0.0977 -0.12)
OKLCHoklch(37.16% 0.155 309.2)
XYZxyz(8.0771, 4.3606, 19.4811)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C7C #407C1C
analogous
#281C7C #581C7C #7C1C70
triadic
#581C7C #7C581C #1C7C58
tetradic
#581C7C #7C281C #407C1C #1C707C
square
#581C7C #7C281C #407C1C #1C707C
split-complementary
#581C7C #707C1C #1C7C28
monochromatic
#120619 #35114A #581C7C #7B27AE #9C3FD4

Accessibility & contrast

On white

11.22
#581C7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581C7C
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C7C#FFFFFF#000000##FFFFFF
##581C7C1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #581c7c;
/* rgb */ color: rgb(88, 28, 124);
/* oklch */ color: oklch(37.2% 0.155 309.2);
Tailwind
colors: {
  custom: {
    50: '#8b5fa3',
    500: '#581c7c',
    950: '#000000',
  },
}
SCSS
$custom: #581c7c;
$custom-light: #8b5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#581c7c",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 277.5,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37162,
    "c": 0.15475,
    "h": 309.2
  },
  "luminance": 0.0436
}

Semantic roles & 50–950 ramp

primary
#581C7C
secondary
#6CB044
accent
#E6427F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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