#782371#782371

#782371 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 41.9% C 0.150 H 331.4°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#782371
RGBrgb(120, 35, 113)
HSLhsl(305, 55%, 30%)
HSVhsv(305, 71%, 47%)
CMYKcmyk(0%, 70.8%, 5.8%, 52.9%)
CIE-LABlab(30.37, 46.18, -26.15)
CIE-LCHlch(30.37, 53.07, 330.48°)
OKLaboklab(41.94% 0.1319 -0.0719)
OKLCHoklch(41.94% 0.15 331.4)
XYZxyz(11.3274, 6.3883, 16.2560)
Luminance0.0639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782371 #23782A
analogous
#542378 #782371 #782346
triadic
#782371 #717823 #237178
tetradic
#782371 #785423 #23782A #234678
square
#782371 #785423 #23782A #234678
split-complementary
#782371 #467823 #237854
monochromatic
#190718 #491544 #782371 #A7319E #CA4BC0

Accessibility & contrast

On white

9.22
#782371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#782371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782371
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782371#FFFFFF#000000##FFFFFF
##7823711.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4073
Deuteranopia (green-blind)
#3C4C6F
Tritanopia (blue-blind)
#7D2C47
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #782371;
/* rgb */ color: rgb(120, 35, 113);
/* oklch */ color: oklch(41.9% 0.150 331.4);
Tailwind
colors: {
  custom: {
    50: '#a2669a',
    500: '#782371',
    950: '#000000',
  },
}
SCSS
$custom: #782371;
$custom-light: #a2669a;
$custom-dark: #000000;
JSON
{
  "hex": "#782371",
  "rgb": {
    "r": 120,
    "g": 35,
    "b": 113
  },
  "hsl": {
    "h": 304.941,
    "s": 54.839,
    "l": 30.392
  },
  "oklch": {
    "l": 0.41944,
    "c": 0.15017,
    "h": 331.4
  },
  "luminance": 0.06387
}

Semantic roles & 50–950 ramp

primary
#782371
secondary
#4CAB54
accent
#DE564A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #782371

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

Preview Lab → · Contrast checker → · Palette generator →

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