#782187#782187

#782187 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.172 H 321.3°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#782187
RGBrgb(120, 33, 135)
HSLhsl(291, 61%, 33%)
HSVhsv(291, 76%, 53%)
CMYKcmyk(11.1%, 75.6%, 0%, 47.1%)
CIE-LABlab(31.42, 50.98, -38.33)
CIE-LCHlch(31.42, 63.78, 323.06°)
OKLaboklab(43.12% 0.1339 -0.1073)
OKLCHoklch(43.12% 0.172 321.3)
XYZxyz(12.6623, 6.8307, 23.5685)
Luminance0.0683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782187 #308721
analogous
#452187 #782187 #872163
triadic
#782187 #877821 #218778
tetradic
#782187 #874521 #308721 #216387
square
#782187 #874521 #308721 #216387
split-complementary
#782187 #638721 #218745
monochromatic
#210925 #4C1556 #782187 #A42DB8 #C04FD4

Accessibility & contrast

On white

8.88
#782187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782187
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782187#FFFFFF#000000##FFFFFF
##7821871.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#2E4D85
Tritanopia (blue-blind)
#793552
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #782187;
/* rgb */ color: rgb(120, 33, 135);
/* oklch */ color: oklch(43.1% 0.172 321.3);
Tailwind
colors: {
  custom: {
    50: '#a266aa',
    500: '#782187',
    950: '#000000',
  },
}
SCSS
$custom: #782187;
$custom-light: #a266aa;
$custom-dark: #000000;
JSON
{
  "hex": "#782187",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 291.176,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43119,
    "c": 0.17158,
    "h": 321.3
  },
  "luminance": 0.0683
}

Semantic roles & 50–950 ramp

primary
#782187
secondary
#5CB74D
accent
#E4445B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #782187

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

Preview Lab → · Contrast checker → · Palette generator →

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