#782D7E#782D7E

#782D7E is a dark, vivid purple. Relative luminance 0.074; OKLCH L 43.8% C 0.148 H 324.7°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#782D7E
RGBrgb(120, 45, 126)
HSLhsl(296, 47%, 34%)
HSVhsv(296, 64%, 49%)
CMYKcmyk(4.8%, 64.3%, 0%, 50.6%)
CIE-LABlab(32.65, 44.23, -30.75)
CIE-LCHlch(32.65, 53.87, 325.19°)
OKLaboklab(43.83% 0.1204 -0.0853)
OKLCHoklch(43.83% 0.148 324.7)
XYZxyz(12.4497, 7.3769, 20.5028)
Luminance0.0738 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782D7E #337E2D
analogous
#4F2D7E #782D7E #7E2D5B
triadic
#782D7E #7E782D #2D7E78
tetradic
#782D7E #7E4F2D #337E2D #2D5B7E
square
#782D7E #7E4F2D #337E2D #2D5B7E
split-complementary
#782D7E #5B7E2D #2D7E4F
monochromatic
#220D24 #4D1D51 #782D7E #A33DAB #BE5FC6

Accessibility & contrast

On white

8.48
#782D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#782D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782D7E
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782D7E#FFFFFF#000000##FFFFFF
##782D7E1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4780
Deuteranopia (green-blind)
#3B507C
Tritanopia (blue-blind)
#7B3951
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #782d7e;
/* rgb */ color: rgb(120, 45, 126);
/* oklch */ color: oklch(43.8% 0.148 324.7);
Tailwind
colors: {
  custom: {
    50: '#a16ba4',
    500: '#782d7e',
    950: '#000000',
  },
}
SCSS
$custom: #782d7e;
$custom-light: #a16ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#782d7e",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 295.556,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.43827,
    "c": 0.14754,
    "h": 324.7
  },
  "luminance": 0.07376
}

Semantic roles & 50–950 ramp

primary
#782D7E
secondary
#60AC5A
accent
#D7515B
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #782D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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