#581B7E#581B7E

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

Color values

HEX#581B7E
RGBrgb(88, 27, 126)
HSLhsl(277, 65%, 30%)
HSVhsv(277, 79%, 49%)
CMYKcmyk(30.2%, 78.6%, 0%, 50.6%)
CIE-LABlab(24.84, 44.72, -43.55)
CIE-LCHlch(24.84, 62.42, 315.76°)
OKLaboklab(37.22% 0.0983 -0.1236)
OKLCHoklch(37.22% 0.158 308.5)
XYZxyz(8.1816, 4.3651, 20.1462)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B7E #417E1B
analogous
#271B7E #581B7E #7E1B72
triadic
#581B7E #7E581B #1B7E58
tetradic
#581B7E #7E271B #417E1B #1B727E
square
#581B7E #7E271B #417E1B #1B727E
split-complementary
#581B7E #727E1B #1B7E27
monochromatic
#120519 #35104C #581B7E #7B26B0 #9B3ED6

Accessibility & contrast

On white

11.21
#581B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581B7E
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B7E#FFFFFF#000000##FFFFFF
##581B7E1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#52334C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581b7e;
/* rgb */ color: rgb(88, 27, 126);
/* oklch */ color: oklch(37.2% 0.158 308.5);
Tailwind
colors: {
  custom: {
    50: '#8b5fa4',
    500: '#581b7e',
    950: '#000000',
  },
}
SCSS
$custom: #581b7e;
$custom-light: #8b5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#581b7e",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 276.97,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.37222,
    "c": 0.15794,
    "h": 308.5
  },
  "luminance": 0.04365
}

Semantic roles & 50–950 ramp

primary
#581B7E
secondary
#6EB243
accent
#E84080
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #581B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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