#581B8A#581B8A

#581B8A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.170 H 304.1°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#581B8A
RGBrgb(88, 27, 138)
HSLhsl(273, 67%, 32%)
HSVhsv(273, 80%, 54%)
CMYKcmyk(36.2%, 80.4%, 0%, 45.9%)
CIE-LABlab(25.84, 47.56, -49.46)
CIE-LCHlch(25.84, 68.61, 313.88°)
OKLaboklab(38.24% 0.0953 -0.141)
OKLCHoklch(38.24% 0.17 304.1)
XYZxyz(9.0028, 4.6936, 24.4715)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B8A #4D8A1B
analogous
#201B8A #581B8A #8A1B85
triadic
#581B8A #8A581B #1B8A58
tetradic
#581B8A #8A201B #4D8A1B #1B858A
square
#581B8A #8A201B #4D8A1B #1B858A
split-complementary
#581B8A #858A1B #1B8A20
monochromatic
#170724 #371157 #581B8A #7925BD #9745DB

Accessibility & contrast

On white

10.83
#581B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#581B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B8A
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B8A#FFFFFF#000000##FFFFFF
##581B8A1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#4E3852
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #581b8a;
/* rgb */ color: rgb(88, 27, 138);
/* oklch */ color: oklch(38.2% 0.170 304.1);
Tailwind
colors: {
  custom: {
    50: '#8c5fad',
    500: '#581b8a',
    950: '#000000',
  },
}
SCSS
$custom: #581b8a;
$custom-light: #8c5fad;
$custom-dark: #000000;
JSON
{
  "hex": "#581b8a",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 272.973,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38235,
    "c": 0.1702,
    "h": 304.1
  },
  "luminance": 0.04694
}

Semantic roles & 50–950 ramp

primary
#581B8A
secondary
#7ABC45
accent
#EA3E8B
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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