#782F8D#782F8D

#782F8D is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.159 H 317.9°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#782F8D
RGBrgb(120, 47, 141)
HSLhsl(287, 50%, 37%)
HSVhsv(287, 67%, 55%)
CMYKcmyk(14.9%, 66.7%, 0%, 44.7%)
CIE-LABlab(33.88, 46.33, -38.10)
CIE-LCHlch(33.88, 59.99, 320.56°)
OKLaboklab(45% 0.1181 -0.1067)
OKLCHoklch(45% 0.159 317.9)
XYZxyz(13.5693, 7.9498, 26.0138)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782F8D #448D2F
analogous
#492F8D #782F8D #8D2F73
triadic
#782F8D #8D782F #2F8D78
tetradic
#782F8D #8D492F #448D2F #2F738D
square
#782F8D #8D492F #448D2F #2F738D
split-complementary
#782F8D #738D2F #2F8D49
monochromatic
#2A1031 #51205F #782F8D #9F3EBB #B769CD

Accessibility & contrast

On white

8.11
#782F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#782F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782F8D
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782F8D#FFFFFF#000000##FFFFFF
##782F8D1.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4B90
Deuteranopia (green-blind)
#33528B
Tritanopia (blue-blind)
#77405A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #782f8d;
/* rgb */ color: rgb(120, 47, 141);
/* oklch */ color: oklch(45.0% 0.159 317.9);
Tailwind
colors: {
  custom: {
    50: '#a26daf',
    500: '#782f8d',
    950: '#000000',
  },
}
SCSS
$custom: #782f8d;
$custom-light: #a26daf;
$custom-dark: #000000;
JSON
{
  "hex": "#782f8d",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 286.596,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45004,
    "c": 0.15918,
    "h": 317.9
  },
  "luminance": 0.07949
}

Semantic roles & 50–950 ramp

primary
#782F8D
secondary
#76B464
accent
#DA4E6D
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #782F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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