#781980#781980

#781980 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 42.0% C 0.174 H 324.6°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#781980
RGBrgb(120, 25, 128)
HSLhsl(295, 67%, 30%)
HSVhsv(295, 80%, 50%)
CMYKcmyk(6.3%, 80.5%, 0%, 49.8%)
CIE-LABlab(30.03, 52.36, -36.18)
CIE-LCHlch(30.03, 63.64, 325.36°)
OKLaboklab(41.99% 0.1418 -0.1009)
OKLCHoklch(41.99% 0.174 324.6)
XYZxyz(11.9893, 6.2476, 20.9923)
Luminance0.0625 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781980 #218019
analogous
#451980 #781980 #801954
triadic
#781980 #807819 #198078
tetradic
#781980 #804519 #218019 #195480
square
#781980 #804519 #218019 #195480
split-complementary
#781980 #548019 #198045
monochromatic
#18051A #480F4D #781980 #A823B3 #CC3BD9

Accessibility & contrast

On white

9.34
#781980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#781980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781980
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781980#FFFFFF#000000##FFFFFF
##7819801.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004083
Deuteranopia (green-blind)
#2F4A7E
Tritanopia (blue-blind)
#7B2D4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781980;
/* rgb */ color: rgb(120, 25, 128);
/* oklch */ color: oklch(42.0% 0.174 324.6);
Tailwind
colors: {
  custom: {
    50: '#a362a5',
    500: '#781980',
    950: '#000000',
  },
}
SCSS
$custom: #781980;
$custom-light: #a362a5;
$custom-dark: #000000;
JSON
{
  "hex": "#781980",
  "rgb": {
    "r": 120,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 295.34,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.41986,
    "c": 0.17403,
    "h": 324.6
  },
  "luminance": 0.06247
}

Semantic roles & 50–950 ramp

primary
#781980
secondary
#4AB441
accent
#EA3E4B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781980

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

Preview Lab → · Contrast checker → · Palette generator →

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