#782A87#782A87

#782A87 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.0% C 0.160 H 320.8°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#782A87
RGBrgb(120, 42, 135)
HSLhsl(290, 53%, 35%)
HSVhsv(290, 69%, 53%)
CMYKcmyk(11.1%, 68.9%, 0%, 47.1%)
CIE-LABlab(32.70, 47.35, -36.28)
CIE-LCHlch(32.70, 59.66, 322.54°)
OKLaboklab(44.04% 0.1242 -0.1014)
OKLCHoklch(44.04% 0.16 320.8)
XYZxyz(12.9464, 7.3989, 23.6632)
Luminance0.0740 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782A87 #39872A
analogous
#4A2A87 #782A87 #872A67
triadic
#782A87 #87782A #2A8778
tetradic
#782A87 #874A2A #39872A #2A6787
square
#782A87 #874A2A #39872A #2A6787
split-complementary
#782A87 #67872A #2A874A
monochromatic
#250D2A #4F1B58 #782A87 #A139B6 #BB5ECD

Accessibility & contrast

On white

8.47
#782A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#782A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782A87
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782A87#FFFFFF#000000##FFFFFF
##782A871.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B478A
Deuteranopia (green-blind)
#335085
Tritanopia (blue-blind)
#793A55
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #782a87;
/* rgb */ color: rgb(120, 42, 135);
/* oklch */ color: oklch(44.0% 0.160 320.8);
Tailwind
colors: {
  custom: {
    50: '#a26aaa',
    500: '#782a87',
    950: '#000000',
  },
}
SCSS
$custom: #782a87;
$custom-light: #a26aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#782a87",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 290.323,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44035,
    "c": 0.16032,
    "h": 320.8
  },
  "luminance": 0.07398
}

Semantic roles & 50–950 ramp

primary
#782A87
secondary
#68B35A
accent
#DC4C63
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #782A87

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

Preview Lab → · Contrast checker → · Palette generator →

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