#581978#581978

#581978 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.5% C 0.154 H 311.2°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#581978
RGBrgb(88, 25, 120)
HSLhsl(280, 66%, 28%)
HSVhsv(280, 79%, 47%)
CMYKcmyk(26.7%, 79.2%, 0%, 52.9%)
CIE-LABlab(24.08, 44.15, -40.97)
CIE-LCHlch(24.08, 60.23, 317.14°)
OKLaboklab(36.54% 0.1014 -0.116)
OKLCHoklch(36.54% 0.154 311.2)
XYZxyz(7.7617, 4.1262, 18.1532)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581978 #397819
analogous
#281978 #581978 #781968
triadic
#581978 #785819 #197858
tetradic
#581978 #782819 #397819 #196878
square
#581978 #782819 #397819 #196878
split-complementary
#581978 #687819 #197828
monochromatic
#130519 #330E45 #581978 #7D24AB #A036D5

Accessibility & contrast

On white

11.51
#581978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#581978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581978
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581978#FFFFFF#000000##FFFFFF
##5819781.0011.511.8311.51
#FFFFFF11.511.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#053A76
Tritanopia (blue-blind)
#543048
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #581978;
/* rgb */ color: rgb(88, 25, 120);
/* oklch */ color: oklch(36.5% 0.154 311.2);
Tailwind
colors: {
  custom: {
    50: '#8b5da0',
    500: '#581978',
    950: '#000000',
  },
}
SCSS
$custom: #581978;
$custom-light: #8b5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#581978",
  "rgb": {
    "r": 88,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 279.789,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36537,
    "c": 0.15413,
    "h": 311.2
  },
  "luminance": 0.04126
}

Semantic roles & 50–950 ramp

primary
#581978
secondary
#65AD40
accent
#E83F78
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050F
muted
#7D797E

Preview Lab

Preview with #581978

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

Preview Lab → · Contrast checker → · Palette generator →

#581978 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva