#581B83#581B83

#581B83 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.163 H 306.6°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#581B83
RGBrgb(88, 27, 131)
HSLhsl(275, 66%, 31%)
HSVhsv(275, 79%, 51%)
CMYKcmyk(32.8%, 79.4%, 0%, 48.6%)
CIE-LABlab(25.25, 45.89, -46.04)
CIE-LCHlch(25.25, 65.00, 314.91°)
OKLaboklab(37.64% 0.0971 -0.131)
OKLCHoklch(37.64% 0.163 306.6)
XYZxyz(8.5123, 4.4974, 21.8880)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B83 #46831B
analogous
#241B83 #581B83 #831B7A
triadic
#581B83 #83581B #1B8358
tetradic
#581B83 #83241B #46831B #1B7A83
square
#581B83 #83241B #46831B #1B7A83
split-complementary
#581B83 #7A831B #1B8324
monochromatic
#14061E #361150 #581B83 #7A25B6 #9941D8

Accessibility & contrast

On white

11.06
#581B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#581B83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B83
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B83#FFFFFF#000000##FFFFFF
##581B831.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A86
Deuteranopia (green-blind)
#003C81
Tritanopia (blue-blind)
#50354E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #581b83;
/* rgb */ color: rgb(88, 27, 131);
/* oklch */ color: oklch(37.6% 0.163 306.6);
Tailwind
colors: {
  custom: {
    50: '#8c5fa8',
    500: '#581b83',
    950: '#000000',
  },
}
SCSS
$custom: #581b83;
$custom-light: #8c5fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#581b83",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 275.192,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37637,
    "c": 0.16304,
    "h": 306.6
  },
  "luminance": 0.04497
}

Semantic roles & 50–950 ramp

primary
#581B83
secondary
#73B643
accent
#E93F85
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #581B83

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

Preview Lab → · Contrast checker → · Palette generator →

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