#782A85#782A85

#782A85 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.9% C 0.158 H 321.6°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#782A85
RGBrgb(120, 42, 133)
HSLhsl(291, 52%, 34%)
HSVhsv(291, 68%, 52%)
CMYKcmyk(9.8%, 68.4%, 0%, 47.8%)
CIE-LABlab(32.58, 46.96, -35.24)
CIE-LCHlch(32.58, 58.71, 323.11°)
OKLaboklab(43.91% 0.1242 -0.0983)
OKLCHoklch(43.91% 0.158 321.6)
XYZxyz(12.8069, 7.3431, 22.9285)
Luminance0.0734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782A85 #37852A
analogous
#4B2A85 #782A85 #852A65
triadic
#782A85 #85782A #2A8578
tetradic
#782A85 #854B2A #37852A #2A6585
square
#782A85 #854B2A #37852A #2A6585
split-complementary
#782A85 #65852A #2A854B
monochromatic
#240D28 #4E1B56 #782A85 #A239B4 #BC5DCC

Accessibility & contrast

On white

8.51
#782A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#782A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782A85
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782A85#FFFFFF#000000##FFFFFF
##782A851.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4788
Deuteranopia (green-blind)
#355083
Tritanopia (blue-blind)
#793954
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #782a85;
/* rgb */ color: rgb(120, 42, 133);
/* oklch */ color: oklch(43.9% 0.158 321.6);
Tailwind
colors: {
  custom: {
    50: '#a26aa9',
    500: '#782a85',
    950: '#000000',
  },
}
SCSS
$custom: #782a85;
$custom-light: #a26aa9;
$custom-dark: #000000;
JSON
{
  "hex": "#782a85",
  "rgb": {
    "r": 120,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 291.429,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.43907,
    "c": 0.15842,
    "h": 321.6
  },
  "luminance": 0.07342
}

Semantic roles & 50–950 ramp

primary
#782A85
secondary
#66B259
accent
#DB4C61
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #782A85

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

Preview Lab → · Contrast checker → · Palette generator →

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