#782D97#782D97

#782D97 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.4% C 0.172 H 314.2°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#782D97
RGBrgb(120, 45, 151)
HSLhsl(282, 54%, 38%)
HSVhsv(282, 70%, 59%)
CMYKcmyk(20.5%, 70.2%, 0%, 40.8%)
CIE-LABlab(34.20, 49.36, -43.71)
CIE-LCHlch(34.20, 65.93, 318.47°)
OKLaboklab(45.44% 0.1199 -0.1231)
OKLCHoklch(45.44% 0.172 314.2)
XYZxyz(14.2691, 8.1047, 30.0849)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782D97 #4C972D
analogous
#432D97 #782D97 #972D81
triadic
#782D97 #97782D #2D9778
tetradic
#782D97 #97432D #4C972D #2D8197
square
#782D97 #97432D #4C972D #2D8197
split-complementary
#782D97 #81972D #2D9743
monochromatic
#2D1139 #531F68 #782D97 #9D3CC5 #B56BD3

Accessibility & contrast

On white

8.01
#782D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#782D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782D97
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782D97#FFFFFF#000000##FFFFFF
##782D971.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#285295
Tritanopia (blue-blind)
#75435E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #782d97;
/* rgb */ color: rgb(120, 45, 151);
/* oklch */ color: oklch(45.4% 0.172 314.2);
Tailwind
colors: {
  custom: {
    50: '#a26cb6',
    500: '#782d97',
    950: '#000000',
  },
}
SCSS
$custom: #782d97;
$custom-light: #a26cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#782d97",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 282.453,
    "s": 54.082,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45442,
    "c": 0.17186,
    "h": 314.2
  },
  "luminance": 0.08104
}

Semantic roles & 50–950 ramp

primary
#782D97
secondary
#7EBA66
accent
#DD4A75
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #782D97

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

Preview Lab → · Contrast checker → · Palette generator →

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