#782C8D#782C8D

#782C8D is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.7% C 0.163 H 318.2°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#782C8D
RGBrgb(120, 44, 141)
HSLhsl(287, 52%, 36%)
HSVhsv(287, 69%, 55%)
CMYKcmyk(14.9%, 68.8%, 0%, 44.7%)
CIE-LABlab(33.39, 47.69, -38.89)
CIE-LCHlch(33.39, 61.54, 320.81°)
OKLaboklab(44.65% 0.1217 -0.109)
OKLCHoklch(44.65% 0.163 318.2)
XYZxyz(13.4535, 7.7181, 25.9752)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782C8D #418D2C
analogous
#482C8D #782C8D #8D2C72
triadic
#782C8D #8D782C #2C8D78
tetradic
#782C8D #8D482C #418D2C #2C728D
square
#782C8D #8D482C #418D2C #2C728D
split-complementary
#782C8D #728D2C #2C8D48
monochromatic
#290F30 #501D5E #782C8D #A03BBC #B865CF

Accessibility & contrast

On white

8.26
#782C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#782C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782C8D
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782C8D#FFFFFF#000000##FFFFFF
##782C8D1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024A90
Deuteranopia (green-blind)
#30518B
Tritanopia (blue-blind)
#783E59
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #782c8d;
/* rgb */ color: rgb(120, 44, 141);
/* oklch */ color: oklch(44.7% 0.163 318.2);
Tailwind
colors: {
  custom: {
    50: '#a26baf',
    500: '#782c8d',
    950: '#000000',
  },
}
SCSS
$custom: #782c8d;
$custom-light: #a26baf;
$custom-dark: #000000;
JSON
{
  "hex": "#782c8d",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 287.01,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44652,
    "c": 0.16335,
    "h": 318.2
  },
  "luminance": 0.07718
}

Semantic roles & 50–950 ramp

primary
#782C8D
secondary
#72B560
accent
#DC4C6B
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #782C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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