#782F8A#782F8A

#782F8A is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.8% C 0.156 H 319.1°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#782F8A
RGBrgb(120, 47, 138)
HSLhsl(288, 49%, 36%)
HSVhsv(288, 66%, 54%)
CMYKcmyk(13%, 65.9%, 0%, 45.9%)
CIE-LABlab(33.69, 45.71, -36.55)
CIE-LCHlch(33.69, 58.52, 321.35°)
OKLaboklab(44.81% 0.1182 -0.1022)
OKLCHoklch(44.81% 0.156 319.1)
XYZxyz(13.3491, 7.8617, 24.8541)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782F8A #418A2F
analogous
#4B2F8A #782F8A #8A2F6F
triadic
#782F8A #8A782F #2F8A78
tetradic
#782F8A #8A4B2F #418A2F #2F6F8A
square
#782F8A #8A4B2F #418A2F #2F6F8A
split-complementary
#782F8A #6F8A2F #2F8A4B
monochromatic
#29102F #501F5C #782F8A #A03FB8 #B868CC

Accessibility & contrast

On white

8.16
#782F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#782F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782F8A
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782F8A#FFFFFF#000000##FFFFFF
##782F8A1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134A8D
Deuteranopia (green-blind)
#355288
Tritanopia (blue-blind)
#783F58
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #782f8a;
/* rgb */ color: rgb(120, 47, 138);
/* oklch */ color: oklch(44.8% 0.156 319.1);
Tailwind
colors: {
  custom: {
    50: '#a26dad',
    500: '#782f8a',
    950: '#000000',
  },
}
SCSS
$custom: #782f8a;
$custom-light: #a26dad;
$custom-dark: #000000;
JSON
{
  "hex": "#782f8a",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 288.132,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44811,
    "c": 0.15621,
    "h": 319.1
  },
  "luminance": 0.07861
}

Semantic roles & 50–950 ramp

primary
#782F8A
secondary
#72B362
accent
#D94F6A
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #782F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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