#781988#781988

#781988 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.181 H 321.3°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#781988
RGBrgb(120, 25, 136)
HSLhsl(291, 69%, 32%)
HSVhsv(291, 82%, 53%)
CMYKcmyk(11.8%, 81.6%, 0%, 46.7%)
CIE-LABlab(30.56, 53.83, -40.33)
CIE-LCHlch(30.56, 67.26, 323.16°)
OKLaboklab(42.53% 0.1409 -0.1131)
OKLCHoklch(42.53% 0.181 321.3)
XYZxyz(12.5368, 6.4666, 23.8756)
Luminance0.0647 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781988 #298819
analogous
#411988 #781988 #881961
triadic
#781988 #887819 #198878
tetradic
#781988 #884119 #298819 #196188
square
#781988 #884119 #298819 #196188
split-complementary
#781988 #618819 #198841
monochromatic
#1D0621 #4A0F54 #781988 #A623BC #C540DC

Accessibility & contrast

On white

9.16
#781988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#781988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781988
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781988#FFFFFF#000000##FFFFFF
##7819881.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418B
Deuteranopia (green-blind)
#284B86
Tritanopia (blue-blind)
#793151
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781988;
/* rgb */ color: rgb(120, 25, 136);
/* oklch */ color: oklch(42.5% 0.181 321.3);
Tailwind
colors: {
  custom: {
    50: '#a363ab',
    500: '#781988',
    950: '#000000',
  },
}
SCSS
$custom: #781988;
$custom-light: #a363ab;
$custom-dark: #000000;
JSON
{
  "hex": "#781988",
  "rgb": {
    "r": 120,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 291.351,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42532,
    "c": 0.18068,
    "h": 321.3
  },
  "luminance": 0.06466
}

Semantic roles & 50–950 ramp

primary
#781988
secondary
#53BB41
accent
#EC3C55
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781988

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

Preview Lab → · Contrast checker → · Palette generator →

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