#782C8E#782C8E

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

Color values

HEX#782C8E
RGBrgb(120, 44, 142)
HSLhsl(287, 53%, 36%)
HSVhsv(287, 69%, 56%)
CMYKcmyk(15.5%, 69%, 0%, 44.3%)
CIE-LABlab(33.45, 47.90, -39.40)
CIE-LCHlch(33.45, 62.02, 320.56°)
OKLaboklab(44.72% 0.1216 -0.1105)
OKLCHoklch(44.72% 0.164 317.7)
XYZxyz(13.5282, 7.7480, 26.3689)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782C8E #428E2C
analogous
#472C8E #782C8E #8E2C73
triadic
#782C8E #8E782C #2C8E78
tetradic
#782C8E #8E472C #428E2C #2C738E
square
#782C8E #8E472C #428E2C #2C738E
split-complementary
#782C8E #738E2C #2C8E47
monochromatic
#290F31 #511E5F #782C8E #9F3ABD #B765CF

Accessibility & contrast

On white

8.24
#782C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#782C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782C8E
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782C8E#FFFFFF#000000##FFFFFF
##782C8E1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A91
Deuteranopia (green-blind)
#30518C
Tritanopia (blue-blind)
#773E59
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #782c8e;
/* rgb */ color: rgb(120, 44, 142);
/* oklch */ color: oklch(44.7% 0.164 317.7);
Tailwind
colors: {
  custom: {
    50: '#a26caf',
    500: '#782c8e',
    950: '#000000',
  },
}
SCSS
$custom: #782c8e;
$custom-light: #a26caf;
$custom-dark: #000000;
JSON
{
  "hex": "#782c8e",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 286.531,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44718,
    "c": 0.16432,
    "h": 317.7
  },
  "luminance": 0.07747
}

Semantic roles & 50–950 ramp

primary
#782C8E
secondary
#73B660
accent
#DC4C6C
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #782C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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