#781579#781579

#781579 is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.2% C 0.172 H 327.7°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#781579
RGBrgb(120, 21, 121)
HSLhsl(299, 70%, 28%)
HSVhsv(299, 83%, 47%)
CMYKcmyk(0.8%, 82.6%, 0%, 52.5%)
CIE-LABlab(29.19, 52.28, -33.11)
CIE-LCHlch(29.19, 61.88, 327.65°)
OKLaboklab(41.25% 0.1454 -0.0919)
OKLCHoklch(41.25% 0.172 327.7)
XYZxyz(11.4649, 5.9107, 18.6225)
Luminance0.0591 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781579 #167915
analogous
#461579 #781579 #791548
triadic
#781579 #797815 #157978
tetradic
#781579 #794615 #167915 #154879
square
#781579 #794615 #167915 #154879
split-complementary
#781579 #487915 #157946
monochromatic
#1A051A #440C45 #781579 #AC1EAD #D92EDB

Accessibility & contrast

On white

9.62
#781579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#781579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781579
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781579#FFFFFF#000000##FFFFFF
##7815791.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7C
Deuteranopia (green-blind)
#324977
Tritanopia (blue-blind)
#7C2748
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #781579;
/* rgb */ color: rgb(120, 21, 121);
/* oklch */ color: oklch(41.2% 0.172 327.7);
Tailwind
colors: {
  custom: {
    50: '#a361a0',
    500: '#781579',
    950: '#000000',
  },
}
SCSS
$custom: #781579;
$custom-light: #a361a0;
$custom-dark: #000000;
JSON
{
  "hex": "#781579",
  "rgb": {
    "r": 120,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 299.4,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.41246,
    "c": 0.17207,
    "h": 327.7
  },
  "luminance": 0.0591
}

Semantic roles & 50–950 ramp

primary
#781579
secondary
#3CAF3B
accent
#ED3B3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #781579

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

Preview Lab → · Contrast checker → · Palette generator →

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