#581E8F#581E8F

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

Color values

HEX#581E8F
RGBrgb(88, 30, 143)
HSLhsl(271, 65%, 34%)
HSVhsv(271, 79%, 56%)
CMYKcmyk(38.5%, 79%, 0%, 43.9%)
CIE-LABlab(26.70, 47.56, -51.17)
CIE-LCHlch(26.70, 69.86, 312.91°)
OKLaboklab(38.96% 0.0914 -0.1461)
OKLCHoklch(38.96% 0.172 302)
XYZxyz(9.4455, 4.9864, 26.4461)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581E8F #558F1E
analogous
#1F1E8F #581E8F #8F1E8E
triadic
#581E8F #8F581E #1E8F58
tetradic
#581E8F #8F1F1E #558F1E #1E8E8F
square
#581E8F #8F1F1E #558F1E #1E8E8F
split-complementary
#581E8F #8E8F1E #1E8F1F
monochromatic
#1A092A #39135C #581E8F #7729C2 #964EDA

Accessibility & contrast

On white

10.51
#581E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #581E8F
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581E8F#FFFFFF#000000##FFFFFF
##581E8F1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #581e8f;
/* rgb */ color: rgb(88, 30, 143);
/* oklch */ color: oklch(39.0% 0.172 302.0);
Tailwind
colors: {
  custom: {
    50: '#8d61b1',
    500: '#581e8f',
    950: '#000000',
  },
}
SCSS
$custom: #581e8f;
$custom-light: #8d61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#581e8f",
  "rgb": {
    "r": 88,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 270.796,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38965,
    "c": 0.17229,
    "h": 302
  },
  "luminance": 0.04986
}

Semantic roles & 50–950 ramp

primary
#581E8F
secondary
#83BC4C
accent
#E84092
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #581E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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