#581C79#581C79

#581C79 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.152 H 310.4°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#581C79
RGBrgb(88, 28, 121)
HSLhsl(279, 62%, 29%)
HSVhsv(279, 77%, 47%)
CMYKcmyk(27.3%, 76.9%, 0%, 52.5%)
CIE-LABlab(24.59, 43.14, -40.78)
CIE-LCHlch(24.59, 59.36, 316.61°)
OKLaboklab(36.92% 0.0983 -0.1155)
OKLCHoklch(36.92% 0.152 310.4)
XYZxyz(7.8903, 4.2859, 18.4971)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C79 #3D791C
analogous
#2A1C79 #581C79 #791C6C
triadic
#581C79 #79581C #1C7958
tetradic
#581C79 #792A1C #3D791C #1C6C79
square
#581C79 #792A1C #3D791C #1C6C79
split-complementary
#581C79 #6C791C #1C792A
monochromatic
#120619 #341047 #581C79 #7C28AB #9D3DD2

Accessibility & contrast

On white

11.31
#581C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#581C79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581C79
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C79#FFFFFF#000000##FFFFFF
##581C791.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#073B77
Tritanopia (blue-blind)
#533249
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #581c79;
/* rgb */ color: rgb(88, 28, 121);
/* oklch */ color: oklch(36.9% 0.152 310.4);
Tailwind
colors: {
  custom: {
    50: '#8b5fa0',
    500: '#581c79',
    950: '#000000',
  },
}
SCSS
$custom: #581c79;
$custom-light: #8b5fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#581c79",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 278.71,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36922,
    "c": 0.15166,
    "h": 310.4
  },
  "luminance": 0.04286
}

Semantic roles & 50–950 ramp

primary
#581C79
secondary
#69AD44
accent
#E5427C
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #581C79

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

Preview Lab → · Contrast checker → · Palette generator →

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