#782A97#782A97

#782A97 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.176 H 314.5°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#782A97
RGBrgb(120, 42, 151)
HSLhsl(283, 56%, 38%)
HSVhsv(283, 72%, 59%)
CMYKcmyk(20.5%, 72.2%, 0%, 40.8%)
CIE-LABlab(33.74, 50.66, -44.45)
CIE-LCHlch(33.74, 67.40, 318.73°)
OKLaboklab(45.11% 0.1232 -0.1253)
OKLCHoklch(45.11% 0.176 314.5)
XYZxyz(14.1587, 7.8838, 30.0481)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782A97 #49972A
analogous
#412A97 #782A97 #972A7F
triadic
#782A97 #97782A #2A9778
tetradic
#782A97 #97412A #49972A #2A7F97
square
#782A97 #97412A #49972A #2A7F97
split-complementary
#782A97 #7F972A #2A9741
monochromatic
#2C0F37 #521D67 #782A97 #9E37C7 #B567D5

Accessibility & contrast

On white

8.15
#782A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#782A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782A97
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782A97#FFFFFF#000000##FFFFFF
##782A971.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#255195
Tritanopia (blue-blind)
#75415E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #782a97;
/* rgb */ color: rgb(120, 42, 151);
/* oklch */ color: oklch(45.1% 0.176 314.5);
Tailwind
colors: {
  custom: {
    50: '#a36bb6',
    500: '#782a97',
    950: '#000000',
  },
}
SCSS
$custom: #782a97;
$custom-light: #a36bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#782a97",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 282.936,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45113,
    "c": 0.17567,
    "h": 314.5
  },
  "luminance": 0.07883
}

Semantic roles & 50–950 ramp

primary
#782A97
secondary
#7BBB62
accent
#E04873
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #782A97

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

Preview Lab → · Contrast checker → · Palette generator →

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