#782791#782791

#782791 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.4% C 0.174 H 317.0°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#782791
RGBrgb(120, 39, 145)
HSLhsl(286, 58%, 36%)
HSVhsv(286, 73%, 57%)
CMYKcmyk(17.2%, 73.1%, 0%, 43.1%)
CIE-LABlab(32.90, 50.64, -42.14)
CIE-LCHlch(32.90, 65.88, 320.24°)
OKLaboklab(44.38% 0.1269 -0.1185)
OKLCHoklch(44.38% 0.174 317)
XYZxyz(13.5813, 7.4890, 27.5127)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782791 #409127
analogous
#432791 #782791 #912775
triadic
#782791 #917827 #279178
tetradic
#782791 #914327 #409127 #277591
square
#782791 #914327 #409127 #277591
split-complementary
#782791 #759127 #279143
monochromatic
#280D31 #501A61 #782791 #A034C1 #B85FD4

Accessibility & contrast

On white

8.41
#782791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#782791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782791
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782791#FFFFFF#000000##FFFFFF
##7827911.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004894
Deuteranopia (green-blind)
#29508F
Tritanopia (blue-blind)
#773D59
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #782791;
/* rgb */ color: rgb(120, 39, 145);
/* oklch */ color: oklch(44.4% 0.174 317.0);
Tailwind
colors: {
  custom: {
    50: '#a269b2',
    500: '#782791',
    950: '#000000',
  },
}
SCSS
$custom: #782791;
$custom-light: #a269b2;
$custom-dark: #000000;
JSON
{
  "hex": "#782791",
  "rgb": {
    "r": 120,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 285.849,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44382,
    "c": 0.17363,
    "h": 317
  },
  "luminance": 0.07488
}

Semantic roles & 50–950 ramp

primary
#782791
secondary
#71B95B
accent
#E1476B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #782791

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

Preview Lab → · Contrast checker → · Palette generator →

#782791 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva