#581C7B#581C7B

#581C7B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.154 H 309.6°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#581C7B
RGBrgb(88, 28, 123)
HSLhsl(278, 63%, 30%)
HSVhsv(278, 77%, 48%)
CMYKcmyk(28.5%, 77.2%, 0%, 51.8%)
CIE-LABlab(24.75, 43.60, -41.80)
CIE-LCHlch(24.75, 60.40, 316.21°)
OKLaboklab(37.08% 0.0979 -0.1185)
OKLCHoklch(37.08% 0.154 309.6)
XYZxyz(8.0142, 4.3354, 19.1497)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581C7B #3F7B1C
analogous
#291C7B #581C7B #7B1C6F
triadic
#581C7B #7B581C #1C7B58
tetradic
#581C7B #7B291C #3F7B1C #1C6F7B
square
#581C7B #7B291C #3F7B1C #1C6F7B
split-complementary
#581C7B #6F7B1C #1C7B29
monochromatic
#120619 #341149 #581C7B #7C27AD #9C3ED3

Accessibility & contrast

On white

11.25
#581C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581C7B
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581C7B#FFFFFF#000000##FFFFFF
##581C7B1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#023C79
Tritanopia (blue-blind)
#53324A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581c7b;
/* rgb */ color: rgb(88, 28, 123);
/* oklch */ color: oklch(37.1% 0.154 309.6);
Tailwind
colors: {
  custom: {
    50: '#8b5fa2',
    500: '#581c7b',
    950: '#000000',
  },
}
SCSS
$custom: #581c7b;
$custom-light: #8b5fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#581c7b",
  "rgb": {
    "r": 88,
    "g": 28,
    "b": 123
  },
  "hsl": {
    "h": 277.895,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37082,
    "c": 0.15372,
    "h": 309.6
  },
  "luminance": 0.04335
}

Semantic roles & 50–950 ramp

primary
#581C7B
secondary
#6BAF44
accent
#E6427E
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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