#581F8D#581F8D

#581F8D is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.169 H 302.6°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#581F8D
RGBrgb(88, 31, 141)
HSLhsl(271, 64%, 34%)
HSVhsv(271, 78%, 55%)
CMYKcmyk(37.6%, 78%, 0%, 44.7%)
CIE-LABlab(26.67, 46.65, -49.97)
CIE-LCHlch(26.67, 68.36, 313.03°)
OKLaboklab(38.9% 0.091 -0.1425)
OKLCHoklch(38.9% 0.169 302.6)
XYZxyz(9.3211, 4.9777, 25.6639)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F8D #548D1F
analogous
#211F8D #581F8D #8D1F8B
triadic
#581F8D #8D581F #1F8D58
tetradic
#581F8D #8D211F #548D1F #1F8B8D
square
#581F8D #8D211F #548D1F #1F8B8D
split-complementary
#581F8D #8B8D1F #1F8D21
monochromatic
#190929 #39145B #581F8D #772ABF #964ED8

Accessibility & contrast

On white

10.52
#581F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#581F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F8D
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F8D#FFFFFF#000000##FFFFFF
##581F8D1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#003F8B
Tritanopia (blue-blind)
#4D3B55
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #581f8d;
/* rgb */ color: rgb(88, 31, 141);
/* oklch */ color: oklch(38.9% 0.169 302.6);
Tailwind
colors: {
  custom: {
    50: '#8d61af',
    500: '#581f8d',
    950: '#000000',
  },
}
SCSS
$custom: #581f8d;
$custom-light: #8d61af;
$custom-dark: #000000;
JSON
{
  "hex": "#581f8d",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 271.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38895,
    "c": 0.16912,
    "h": 302.6
  },
  "luminance": 0.04978
}

Semantic roles & 50–950 ramp

primary
#581F8D
secondary
#82BB4D
accent
#E74191
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #581F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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