#581F78#581F78

#581F78 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.147 H 310.4°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#581F78
RGBrgb(88, 31, 120)
HSLhsl(278, 59%, 30%)
HSVhsv(278, 74%, 47%)
CMYKcmyk(26.7%, 74.2%, 0%, 52.9%)
CIE-LABlab(24.99, 41.58, -39.51)
CIE-LCHlch(24.99, 57.36, 316.46°)
OKLaboklab(37.18% 0.0953 -0.1118)
OKLCHoklch(37.18% 0.147 310.4)
XYZxyz(7.9040, 4.4109, 18.2007)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581F78 #3F781F
analogous
#2C1F78 #581F78 #781F6C
triadic
#581F78 #78581F #1F7858
tetradic
#581F78 #782C1F #3F781F #1F6C78
square
#581F78 #782C1F #3F781F #1F6C78
split-complementary
#581F78 #6C781F #1F782C
monochromatic
#120618 #341247 #581F78 #7C2CA9 #9C43CE

Accessibility & contrast

On white

11.16
#581F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#581F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581F78
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581F78#FFFFFF#000000##FFFFFF
##581F781.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397B
Deuteranopia (green-blind)
#0F3C76
Tritanopia (blue-blind)
#543349
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #581f78;
/* rgb */ color: rgb(88, 31, 120);
/* oklch */ color: oklch(37.2% 0.147 310.4);
Tailwind
colors: {
  custom: {
    50: '#8b60a0',
    500: '#581f78',
    950: '#000000',
  },
}
SCSS
$custom: #581f78;
$custom-light: #8b60a0;
$custom-dark: #000000;
JSON
{
  "hex": "#581f78",
  "rgb": {
    "r": 88,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 278.427,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37176,
    "c": 0.14689,
    "h": 310.4
  },
  "luminance": 0.04411
}

Semantic roles & 50–950 ramp

primary
#581F78
secondary
#6BAB47
accent
#E2467E
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #581F78

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

Preview Lab → · Contrast checker → · Palette generator →

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