#781971#781971

#781971 is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.0% C 0.162 H 331.4°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#781971
RGBrgb(120, 25, 113)
HSLhsl(304, 66%, 28%)
HSVhsv(304, 79%, 47%)
CMYKcmyk(0%, 79.2%, 5.8%, 52.9%)
CIE-LABlab(29.11, 49.76, -28.14)
CIE-LCHlch(29.11, 57.17, 330.51°)
OKLaboklab(41.04% 0.1422 -0.0775)
OKLCHoklch(41.04% 0.162 331.4)
XYZxyz(11.0740, 5.8815, 16.1716)
Luminance0.0588 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781971 #197820
analogous
#4F1978 #781971 #781941
triadic
#781971 #717819 #197178
tetradic
#781971 #784F19 #197820 #194178
square
#781971 #784F19 #197820 #194178
split-complementary
#781971 #417819 #19784F
monochromatic
#190518 #450E41 #781971 #AB24A1 #D536C9

Accessibility & contrast

On white

9.65
#781971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781971
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781971#FFFFFF#000000##FFFFFF
##7819711.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103C73
Deuteranopia (green-blind)
#38496F
Tritanopia (blue-blind)
#7D2544
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #781971;
/* rgb */ color: rgb(120, 25, 113);
/* oklch */ color: oklch(41.0% 0.162 331.4);
Tailwind
colors: {
  custom: {
    50: '#a2629a',
    500: '#781971',
    950: '#000000',
  },
}
SCSS
$custom: #781971;
$custom-light: #a2629a;
$custom-dark: #000000;
JSON
{
  "hex": "#781971",
  "rgb": {
    "r": 120,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 304.421,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.41038,
    "c": 0.16198,
    "h": 331.4
  },
  "luminance": 0.05881
}

Semantic roles & 50–950 ramp

primary
#781971
secondary
#40AD48
accent
#E84C3F
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781971

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

Preview Lab → · Contrast checker → · Palette generator →

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