#782A71#782A71

#782A71 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.7% C 0.140 H 331.4°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#782A71
RGBrgb(120, 42, 113)
HSLhsl(305, 48%, 32%)
HSVhsv(305, 65%, 47%)
CMYKcmyk(0%, 65%, 5.8%, 52.9%)
CIE-LABlab(31.44, 43.19, -24.46)
CIE-LCHlch(31.44, 49.63, 330.47°)
OKLaboklab(42.72% 0.1232 -0.0671)
OKLCHoklch(42.72% 0.14 331.4)
XYZxyz(11.5543, 6.8421, 16.3317)
Luminance0.0684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782A71 #2A7831
analogous
#582A78 #782A71 #782A4A
triadic
#782A71 #71782A #2A7178
tetradic
#782A71 #78582A #2A7831 #2A4A78
square
#782A71 #78582A #2A7831 #2A4A78
split-complementary
#782A71 #4A782A #2A7858
monochromatic
#1D0A1C #4B1A46 #782A71 #A53A9C #C558BB

Accessibility & contrast

On white

8.87
#782A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#782A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782A71
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782A71#FFFFFF#000000##FFFFFF
##782A711.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264373
Deuteranopia (green-blind)
#404E6F
Tritanopia (blue-blind)
#7D3149
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #782a71;
/* rgb */ color: rgb(120, 42, 113);
/* oklch */ color: oklch(42.7% 0.140 331.4);
Tailwind
colors: {
  custom: {
    50: '#a1699a',
    500: '#782a71',
    950: '#000000',
  },
}
SCSS
$custom: #782a71;
$custom-light: #a1699a;
$custom-dark: #000000;
JSON
{
  "hex": "#782a71",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 113
  },
  "hsl": {
    "h": 305.385,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42722,
    "c": 0.14028,
    "h": 331.4
  },
  "luminance": 0.06841
}

Semantic roles & 50–950 ramp

primary
#782A71
secondary
#54AA5C
accent
#D85C50
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #782A71

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

Preview Lab → · Contrast checker → · Palette generator →

#782A71 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva