#581B8B#581B8B

#581B8B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.171 H 303.7°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#581B8B
RGBrgb(88, 27, 139)
HSLhsl(273, 67%, 33%)
HSVhsv(273, 81%, 55%)
CMYKcmyk(36.7%, 80.6%, 0%, 45.5%)
CIE-LABlab(25.93, 47.80, -49.94)
CIE-LCHlch(25.93, 69.13, 313.75°)
OKLaboklab(38.32% 0.095 -0.1424)
OKLCHoklch(38.32% 0.171 303.7)
XYZxyz(9.0755, 4.7227, 24.8545)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B8B #4E8B1B
analogous
#201B8B #581B8B #8B1B86
triadic
#581B8B #8B581B #1B8B58
tetradic
#581B8B #8B201B #4E8B1B #1B868B
square
#581B8B #8B201B #4E8B1B #1B868B
split-complementary
#581B8B #868B1B #1B8B20
monochromatic
#170725 #381158 #581B8B #7825BE #9745DB

Accessibility & contrast

On white

10.80
#581B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581B8B
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B8B#FFFFFF#000000##FFFFFF
##581B8B1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#4E3953
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #581b8b;
/* rgb */ color: rgb(88, 27, 139);
/* oklch */ color: oklch(38.3% 0.171 303.7);
Tailwind
colors: {
  custom: {
    50: '#8d5fae',
    500: '#581b8b',
    950: '#000000',
  },
}
SCSS
$custom: #581b8b;
$custom-light: #8d5fae;
$custom-dark: #000000;
JSON
{
  "hex": "#581b8b",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 272.679,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38322,
    "c": 0.17121,
    "h": 303.7
  },
  "luminance": 0.04723
}

Semantic roles & 50–950 ramp

primary
#581B8B
secondary
#7CBC45
accent
#EA3D8C
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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