#581B90#581B90

#581B90 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.176 H 302.1°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#581B90
RGBrgb(88, 27, 144)
HSLhsl(271, 68%, 34%)
HSVhsv(271, 81%, 56%)
CMYKcmyk(38.9%, 81.3%, 0%, 43.5%)
CIE-LABlab(26.37, 49.01, -52.33)
CIE-LCHlch(26.37, 71.69, 313.12°)
OKLaboklab(38.76% 0.0936 -0.1494)
OKLCHoklch(38.76% 0.176 302.1)
XYZxyz(9.4493, 4.8722, 26.8227)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B90 #53901B
analogous
#1D1B90 #581B90 #901B8D
triadic
#581B90 #90581B #1B9058
tetradic
#581B90 #901D1B #53901B #1B8D90
square
#581B90 #901D1B #53901B #1B8D90
split-complementary
#581B90 #8D901B #1B901D
monochromatic
#190829 #39115C #581B90 #7725C4 #9649DD

Accessibility & contrast

On white

10.64
#581B90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#581B90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B90
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B90#FFFFFF#000000##FFFFFF
##581B901.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E93
Deuteranopia (green-blind)
#003E8E
Tritanopia (blue-blind)
#4C3B56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581b90;
/* rgb */ color: rgb(88, 27, 144);
/* oklch */ color: oklch(38.8% 0.176 302.1);
Tailwind
colors: {
  custom: {
    50: '#8d60b1',
    500: '#581b90',
    950: '#000000',
  },
}
SCSS
$custom: #581b90;
$custom-light: #8d60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#581b90",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 144
  },
  "hsl": {
    "h": 271.282,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38763,
    "c": 0.17633,
    "h": 302.1
  },
  "luminance": 0.04872
}

Semantic roles & 50–950 ramp

primary
#581B90
secondary
#81BF48
accent
#EB3D90
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #581B90

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

Preview Lab → · Contrast checker → · Palette generator →

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