#782C87#782C87

#782C87 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.3% C 0.158 H 320.6°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#782C87
RGBrgb(120, 44, 135)
HSLhsl(290, 51%, 35%)
HSVhsv(290, 67%, 53%)
CMYKcmyk(11.1%, 67.4%, 0%, 47.1%)
CIE-LABlab(33.02, 46.47, -35.78)
CIE-LCHlch(33.02, 58.65, 322.41°)
OKLaboklab(44.26% 0.1218 -0.0999)
OKLCHoklch(44.26% 0.158 320.6)
XYZxyz(13.0191, 7.5443, 23.6874)
Luminance0.0754 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782C87 #3B872C
analogous
#4B2C87 #782C87 #872C68
triadic
#782C87 #87782C #2C8778
tetradic
#782C87 #874B2C #3B872C #2C6887
square
#782C87 #874B2C #3B872C #2C6887
split-complementary
#782C87 #68872C #2C874B
monochromatic
#260E2B #4F1D59 #782C87 #A13BB5 #BA62CC

Accessibility & contrast

On white

8.37
#782C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#782C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782C87
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782C87#FFFFFF#000000##FFFFFF
##782C871.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11488A
Deuteranopia (green-blind)
#355085
Tritanopia (blue-blind)
#793C55
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #782c87;
/* rgb */ color: rgb(120, 44, 135);
/* oklch */ color: oklch(44.3% 0.158 320.6);
Tailwind
colors: {
  custom: {
    50: '#a26baa',
    500: '#782c87',
    950: '#000000',
  },
}
SCSS
$custom: #782c87;
$custom-light: #a26baa;
$custom-dark: #000000;
JSON
{
  "hex": "#782c87",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 290.11,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44263,
    "c": 0.15755,
    "h": 320.6
  },
  "luminance": 0.07544
}

Semantic roles & 50–950 ramp

primary
#782C87
secondary
#6BB25D
accent
#DA4D65
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #782C87

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

Preview Lab → · Contrast checker → · Palette generator →

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