#581B87#581B87

#581B87 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.167 H 305.1°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#581B87
RGBrgb(88, 27, 135)
HSLhsl(274, 67%, 32%)
HSVhsv(274, 80%, 53%)
CMYKcmyk(34.8%, 80%, 0%, 47.1%)
CIE-LABlab(25.59, 46.84, -48.00)
CIE-LCHlch(25.59, 67.07, 314.30°)
OKLaboklab(37.98% 0.0961 -0.1367)
OKLCHoklch(37.98% 0.167 305.1)
XYZxyz(8.7886, 4.6079, 23.3434)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B87 #4A871B
analogous
#221B87 #581B87 #871B80
triadic
#581B87 #87581B #1B8758
tetradic
#581B87 #87221B #4A871B #1B8087
square
#581B87 #87221B #4A871B #1B8087
split-complementary
#581B87 #80871B #1B8722
monochromatic
#160721 #371154 #581B87 #7925BA #9843D9

Accessibility & contrast

On white

10.93
#581B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#581B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B87
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B87#FFFFFF#000000##FFFFFF
##581B871.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#4F3751
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #581b87;
/* rgb */ color: rgb(88, 27, 135);
/* oklch */ color: oklch(38.0% 0.167 305.1);
Tailwind
colors: {
  custom: {
    50: '#8c5fab',
    500: '#581b87',
    950: '#000000',
  },
}
SCSS
$custom: #581b87;
$custom-light: #8c5fab;
$custom-dark: #000000;
JSON
{
  "hex": "#581b87",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 273.889,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37976,
    "c": 0.16713,
    "h": 305.1
  },
  "luminance": 0.04608
}

Semantic roles & 50–950 ramp

primary
#581B87
secondary
#77BA44
accent
#EA3E89
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #581B87

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

Preview Lab → · Contrast checker → · Palette generator →

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