#782D87#782D87

#782D87 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.4% C 0.156 H 320.6°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#782D87
RGBrgb(120, 45, 135)
HSLhsl(290, 50%, 35%)
HSVhsv(290, 67%, 53%)
CMYKcmyk(11.1%, 66.7%, 0%, 47.1%)
CIE-LABlab(33.18, 46.02, -35.52)
CIE-LCHlch(33.18, 58.13, 322.34°)
OKLaboklab(44.38% 0.1206 -0.0991)
OKLCHoklch(44.38% 0.156 320.6)
XYZxyz(13.0568, 7.6197, 23.7000)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782D87 #3C872D
analogous
#4B2D87 #782D87 #872D69
triadic
#782D87 #87782D #2D8778
tetradic
#782D87 #874B2D #3C872D #2D6987
square
#782D87 #874B2D #3C872D #2D6987
split-complementary
#782D87 #69872D #2D874B
monochromatic
#260E2B #4F1E59 #782D87 #A13CB5 #BA63CB

Accessibility & contrast

On white

8.32
#782D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#782D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782D87
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782D87#FFFFFF#000000##FFFFFF
##782D871.008.322.528.32
#FFFFFF8.321.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13498A
Deuteranopia (green-blind)
#365185
Tritanopia (blue-blind)
#793C56
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #782d87;
/* rgb */ color: rgb(120, 45, 135);
/* oklch */ color: oklch(44.4% 0.156 320.6);
Tailwind
colors: {
  custom: {
    50: '#a26caa',
    500: '#782d87',
    950: '#000000',
  },
}
SCSS
$custom: #782d87;
$custom-light: #a26caa;
$custom-dark: #000000;
JSON
{
  "hex": "#782d87",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 290,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.4438,
    "c": 0.15614,
    "h": 320.6
  },
  "luminance": 0.07619
}

Semantic roles & 50–950 ramp

primary
#782D87
secondary
#6CB25E
accent
#DA4E65
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #782D87

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

Preview Lab → · Contrast checker → · Palette generator →

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