#581B8E#581B8E

#581B8E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.6% C 0.174 H 302.7°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#581B8E
RGBrgb(88, 27, 142)
HSLhsl(272, 68%, 33%)
HSVhsv(272, 81%, 56%)
CMYKcmyk(38%, 81%, 0%, 44.3%)
CIE-LABlab(26.19, 48.53, -51.38)
CIE-LCHlch(26.19, 70.67, 313.37°)
OKLaboklab(38.59% 0.0942 -0.1466)
OKLCHoklch(38.59% 0.174 302.7)
XYZxyz(9.2978, 4.8115, 26.0248)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581B8E #518E1B
analogous
#1E1B8E #581B8E #8E1B8A
triadic
#581B8E #8E581B #1B8E58
tetradic
#581B8E #8E1E1B #518E1B #1B8A8E
square
#581B8E #8E1E1B #518E1B #1B8A8E
split-complementary
#581B8E #8A8E1B #1B8E1E
monochromatic
#180727 #38115B #581B8E #7825C1 #9647DC

Accessibility & contrast

On white

10.70
#581B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#581B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581B8E
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581B8E#FFFFFF#000000##FFFFFF
##581B8E1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#4D3A55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581b8e;
/* rgb */ color: rgb(88, 27, 142);
/* oklch */ color: oklch(38.6% 0.174 302.7);
Tailwind
colors: {
  custom: {
    50: '#8d5fb0',
    500: '#581b8e',
    950: '#000000',
  },
}
SCSS
$custom: #581b8e;
$custom-light: #8d5fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#581b8e",
  "rgb": {
    "r": 88,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 271.826,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38586,
    "c": 0.17429,
    "h": 302.7
  },
  "luminance": 0.04812
}

Semantic roles & 50–950 ramp

primary
#581B8E
secondary
#7FBE47
accent
#EB3D8F
background
#F9F5FA
surface
#F1EAF5
border
#CBC6CF
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #581B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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