#581F8F#581F8F

#581F8F is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.171 H 301.9°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#581F8F
RGBrgb(88, 31, 143)
HSLhsl(271, 64%, 34%)
HSVhsv(271, 78%, 56%)
CMYKcmyk(38.5%, 78.3%, 0%, 43.9%)
CIE-LABlab(26.84, 47.14, -50.93)
CIE-LCHlch(26.84, 69.40, 312.79°)
OKLaboklab(39.07% 0.0905 -0.1454)
OKLCHoklch(39.07% 0.171 301.9)
XYZxyz(9.4712, 5.0378, 26.4547)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F8F #568F1F
analogous
#201F8F #581F8F #8F1F8E
triadic
#581F8F #8F581F #1F8F58
tetradic
#581F8F #8F201F #568F1F #1F8E8F
square
#581F8F #8F201F #568F1F #1F8E8F
split-complementary
#581F8F #8E8F1F #1F8F20
monochromatic
#1A092A #39145D #581F8F #772AC1 #954FD9

Accessibility & contrast

On white

10.46
#581F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#581F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F8F
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F8F#FFFFFF#000000##FFFFFF
##581F8F1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#4C3C56
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #581f8f;
/* rgb */ color: rgb(88, 31, 143);
/* oklch */ color: oklch(39.1% 0.171 301.9);
Tailwind
colors: {
  custom: {
    50: '#8d61b1',
    500: '#581f8f',
    950: '#000000',
  },
}
SCSS
$custom: #581f8f;
$custom-light: #8d61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#581f8f",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 270.536,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39068,
    "c": 0.17124,
    "h": 301.9
  },
  "luminance": 0.05038
}

Semantic roles & 50–950 ramp

primary
#581F8F
secondary
#84BC4E
accent
#E74092
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #581F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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