#782C8A#782C8A

#782C8A is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.5% C 0.160 H 319.4°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#782C8A
RGBrgb(120, 44, 138)
HSLhsl(289, 52%, 36%)
HSVhsv(289, 68%, 54%)
CMYKcmyk(13%, 68.1%, 0%, 45.9%)
CIE-LABlab(33.20, 47.08, -37.34)
CIE-LCHlch(33.20, 60.09, 321.58°)
OKLaboklab(44.46% 0.1218 -0.1044)
OKLCHoklch(44.46% 0.16 319.4)
XYZxyz(13.2333, 7.6300, 24.8155)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782C8A #3E8A2C
analogous
#492C8A #782C8A #8A2C6D
triadic
#782C8A #8A782C #2C8A78
tetradic
#782C8A #8A492C #3E8A2C #2C6D8A
square
#782C8A #8A492C #3E8A2C #2C6D8A
split-complementary
#782C8A #6D8A2C #2C8A49
monochromatic
#270E2D #501D5C #782C8A #A03BB8 #B963CD

Accessibility & contrast

On white

8.31
#782C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#782C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782C8A
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782C8A#FFFFFF#000000##FFFFFF
##782C8A1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A498D
Deuteranopia (green-blind)
#335188
Tritanopia (blue-blind)
#783D57
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #782c8a;
/* rgb */ color: rgb(120, 44, 138);
/* oklch */ color: oklch(44.5% 0.160 319.4);
Tailwind
colors: {
  custom: {
    50: '#a26bad',
    500: '#782c8a',
    950: '#000000',
  },
}
SCSS
$custom: #782c8a;
$custom-light: #a26bad;
$custom-dark: #000000;
JSON
{
  "hex": "#782c8a",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 288.511,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44455,
    "c": 0.16044,
    "h": 319.4
  },
  "luminance": 0.07629
}

Semantic roles & 50–950 ramp

primary
#782C8A
secondary
#6FB45E
accent
#DB4D68
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #782C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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