#782188#782188

#782188 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.172 H 320.9°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#782188
RGBrgb(120, 33, 136)
HSLhsl(291, 61%, 33%)
HSVhsv(291, 76%, 53%)
CMYKcmyk(11.8%, 75.7%, 0%, 46.7%)
CIE-LABlab(31.48, 51.17, -38.85)
CIE-LCHlch(31.48, 64.24, 322.80°)
OKLaboklab(43.19% 0.1338 -0.1088)
OKLCHoklch(43.19% 0.172 320.9)
XYZxyz(12.7330, 6.8590, 23.9410)
Luminance0.0686 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782188 #318821
analogous
#452188 #782188 #882164
triadic
#782188 #887821 #218878
tetradic
#782188 #884521 #318821 #216488
square
#782188 #884521 #318821 #216488
split-complementary
#782188 #648821 #218845
monochromatic
#210925 #4D1557 #782188 #A32DB9 #C04FD4

Accessibility & contrast

On white

8.85
#782188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#782188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782188
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782188#FFFFFF#000000##FFFFFF
##7821881.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448B
Deuteranopia (green-blind)
#2D4D86
Tritanopia (blue-blind)
#793553
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #782188;
/* rgb */ color: rgb(120, 33, 136);
/* oklch */ color: oklch(43.2% 0.172 320.9);
Tailwind
colors: {
  custom: {
    50: '#a266ab',
    500: '#782188',
    950: '#000000',
  },
}
SCSS
$custom: #782188;
$custom-light: #a266ab;
$custom-dark: #000000;
JSON
{
  "hex": "#782188",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 290.68,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43186,
    "c": 0.17246,
    "h": 320.9
  },
  "luminance": 0.06858
}

Semantic roles & 50–950 ramp

primary
#782188
secondary
#5EB84D
accent
#E4445D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #782188

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

Preview Lab → · Contrast checker → · Palette generator →

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