#581A8F#581A8F

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

Color values

HEX#581A8F
RGBrgb(88, 26, 143)
HSLhsl(272, 69%, 33%)
HSVhsv(272, 82%, 56%)
CMYKcmyk(38.5%, 81.8%, 0%, 43.9%)
CIE-LABlab(26.15, 49.15, -52.07)
CIE-LCHlch(26.15, 71.60, 313.35°)
OKLaboklab(38.58% 0.0947 -0.1487)
OKLCHoklch(38.58% 0.176 302.5)
XYZxyz(9.3506, 4.7966, 26.4145)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581A8F #518F1A
analogous
#1D1A8F #581A8F #8F1A8B
triadic
#581A8F #8F581A #1A8F58
tetradic
#581A8F #8F1D1A #518F1A #1A8B8F
square
#581A8F #8F1D1A #518F1A #1A8B8F
split-complementary
#581A8F #8B8F1A #1A8F1D
monochromatic
#180727 #38115B #581A8F #7823C3 #9646DD

Accessibility & contrast

On white

10.72
#581A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581A8F
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581A8F#FFFFFF#000000##FFFFFF
##581A8F1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#4C3A55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #581a8f;
/* rgb */ color: rgb(88, 26, 143);
/* oklch */ color: oklch(38.6% 0.176 302.5);
Tailwind
colors: {
  custom: {
    50: '#8d5fb1',
    500: '#581a8f',
    950: '#000000',
  },
}
SCSS
$custom: #581a8f;
$custom-light: #8d5fb1;
$custom-dark: #000000;
JSON
{
  "hex": "#581a8f",
  "rgb": {
    "r": 88,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 271.795,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.38582,
    "c": 0.17626,
    "h": 302.5
  },
  "luminance": 0.04797
}

Semantic roles & 50–950 ramp

primary
#581A8F
secondary
#7FBF46
accent
#EC3C8F
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #581A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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