#581C7D#581C7D

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

Color values

HEX#581C7D
RGBrgb(88, 28, 125)
HSLhsl(277, 63%, 30%)
HSVhsv(277, 78%, 49%)
CMYKcmyk(29.6%, 77.6%, 0%, 51%)
CIE-LABlab(24.91, 44.07, -42.81)
CIE-LCHlch(24.91, 61.44, 315.83°)
OKLaboklab(37.24% 0.0975 -0.1215)
OKLCHoklch(37.24% 0.156 308.8)
XYZxyz(8.1407, 4.3860, 19.8158)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C7D #417D1C
analogous
#271C7D #581C7D #7D1C72
triadic
#581C7D #7D581C #1C7D58
tetradic
#581C7D #7D271C #417D1C #1C727D
square
#581C7D #7D271C #417D1C #1C727D
split-complementary
#581C7D #727D1C #1C7D27
monochromatic
#120619 #35114B #581C7D #7B27AF #9B3FD4

Accessibility & contrast

On white

11.19
#581C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581C7D
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C7D#FFFFFF#000000##FFFFFF
##581C7D1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#52334B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581c7d;
/* rgb */ color: rgb(88, 28, 125);
/* oklch */ color: oklch(37.2% 0.156 308.8);
Tailwind
colors: {
  custom: {
    50: '#8b5fa3',
    500: '#581c7d',
    950: '#000000',
  },
}
SCSS
$custom: #581c7d;
$custom-light: #8b5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#581c7d",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 277.113,
    "s": 63.399,
    "l": 30
  },
  "oklch": {
    "l": 0.37243,
    "c": 0.15578,
    "h": 308.8
  },
  "luminance": 0.04386
}

Semantic roles & 50–950 ramp

primary
#581C7D
secondary
#6EB144
accent
#E64180
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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