#581F8E#581F8E

#581F8E is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.170 H 302.2°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#581F8E
RGBrgb(88, 31, 142)
HSLhsl(271, 64%, 34%)
HSVhsv(271, 78%, 56%)
CMYKcmyk(38%, 78.2%, 0%, 44.3%)
CIE-LABlab(26.76, 46.89, -50.45)
CIE-LCHlch(26.76, 68.88, 312.91°)
OKLaboklab(38.98% 0.0907 -0.144)
OKLCHoklch(38.98% 0.17 302.2)
XYZxyz(9.3958, 5.0076, 26.0575)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F8E #558E1F
analogous
#211F8E #581F8E #8E1F8D
triadic
#581F8E #8E581F #1F8E58
tetradic
#581F8E #8E211F #558E1F #1F8D8E
square
#581F8E #8E211F #558E1F #1F8D8E
split-complementary
#581F8E #8D8E1F #1F8E21
monochromatic
#1A092A #39145C #581F8E #772AC0 #964FD9

Accessibility & contrast

On white

10.49
#581F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581F8E
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F8E#FFFFFF#000000##FFFFFF
##581F8E1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #581f8e;
/* rgb */ color: rgb(88, 31, 142);
/* oklch */ color: oklch(39.0% 0.170 302.2);
Tailwind
colors: {
  custom: {
    50: '#8d61b0',
    500: '#581f8e',
    950: '#000000',
  },
}
SCSS
$custom: #581f8e;
$custom-light: #8d61b0;
$custom-dark: #000000;
JSON
{
  "hex": "#581f8e",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 270.811,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38981,
    "c": 0.17018,
    "h": 302.2
  },
  "luminance": 0.05008
}

Semantic roles & 50–950 ramp

primary
#581F8E
secondary
#83BB4D
accent
#E74192
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #581F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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