#581778#581778

#581778 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.3% C 0.156 H 311.4°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#581778
RGBrgb(88, 23, 120)
HSLhsl(280, 68%, 28%)
HSVhsv(280, 81%, 47%)
CMYKcmyk(26.7%, 80.8%, 0%, 52.9%)
CIE-LABlab(23.82, 44.92, -41.40)
CIE-LCHlch(23.82, 61.09, 317.33°)
OKLaboklab(36.35% 0.1033 -0.1173)
OKLCHoklch(36.35% 0.156 311.4)
XYZxyz(7.7204, 4.0438, 18.1395)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#581778 #377817
analogous
#271778 #581778 #781767
triadic
#581778 #785817 #177858
tetradic
#581778 #782717 #377817 #176778
square
#581778 #782717 #377817 #176778
split-complementary
#581778 #677817 #177827
monochromatic
#13051A #320D45 #581778 #7E21AB #A132D8

Accessibility & contrast

On white

11.61
#581778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#581778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #581778
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##581778#FFFFFF#000000##FFFFFF
##5817781.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#013A76
Tritanopia (blue-blind)
#542F47
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #581778;
/* rgb */ color: rgb(88, 23, 120);
/* oklch */ color: oklch(36.3% 0.156 311.4);
Tailwind
colors: {
  custom: {
    50: '#8b5da0',
    500: '#581778',
    950: '#000000',
  },
}
SCSS
$custom: #581778;
$custom-light: #8b5da0;
$custom-dark: #000000;
JSON
{
  "hex": "#581778",
  "rgb": {
    "r": 88,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 280.206,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.36348,
    "c": 0.1563,
    "h": 311.4
  },
  "luminance": 0.04044
}

Semantic roles & 50–950 ramp

primary
#581778
secondary
#62AD3E
accent
#EB3D76
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #581778

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

Preview Lab → · Contrast checker → · Palette generator →

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