#782E8A#782E8A

#782E8A is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.7% C 0.158 H 319.2°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#782E8A
RGBrgb(120, 46, 138)
HSLhsl(288, 50%, 36%)
HSVhsv(288, 67%, 54%)
CMYKcmyk(13%, 66.7%, 0%, 45.9%)
CIE-LABlab(33.53, 46.17, -36.82)
CIE-LCHlch(33.53, 59.05, 321.43°)
OKLaboklab(44.69% 0.1194 -0.1029)
OKLCHoklch(44.69% 0.158 319.2)
XYZxyz(13.3096, 7.7826, 24.8410)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782E8A #408A2E
analogous
#4A2E8A #782E8A #8A2E6E
triadic
#782E8A #8A782E #2E8A78
tetradic
#782E8A #8A4A2E #408A2E #2E6E8A
square
#782E8A #8A4A2E #408A2E #2E6E8A
split-complementary
#782E8A #6E8A2E #2E8A4A
monochromatic
#280F2E #501F5C #782E8A #A03DB8 #B866CC

Accessibility & contrast

On white

8.21
#782E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#782E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782E8A
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782E8A#FFFFFF#000000##FFFFFF
##782E8A1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104A8D
Deuteranopia (green-blind)
#345188
Tritanopia (blue-blind)
#783E58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #782e8a;
/* rgb */ color: rgb(120, 46, 138);
/* oklch */ color: oklch(44.7% 0.158 319.2);
Tailwind
colors: {
  custom: {
    50: '#a26cad',
    500: '#782e8a',
    950: '#000000',
  },
}
SCSS
$custom: #782e8a;
$custom-light: #a26cad;
$custom-dark: #000000;
JSON
{
  "hex": "#782e8a",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 288.261,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.4469,
    "c": 0.15763,
    "h": 319.2
  },
  "luminance": 0.07782
}

Semantic roles & 50–950 ramp

primary
#782E8A
secondary
#71B361
accent
#DA4E6A
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #782E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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