#782278#782278

#782278 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.3% C 0.157 H 327.9°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#782278
RGBrgb(120, 34, 120)
HSLhsl(300, 56%, 30%)
HSVhsv(300, 72%, 47%)
CMYKcmyk(0%, 71.7%, 0%, 52.9%)
CIE-LABlab(30.63, 47.81, -30.19)
CIE-LCHlch(30.63, 56.54, 327.73°)
OKLaboklab(42.26% 0.1333 -0.0835)
OKLCHoklch(42.26% 0.157 327.9)
XYZxyz(11.7078, 6.4940, 18.4025)
Luminance0.0649 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782278 #227822
analogous
#4D2278 #782278 #78224D
triadic
#782278 #787822 #227878
tetradic
#782278 #784D22 #227822 #224D78
square
#782278 #784D22 #227822 #224D78
split-complementary
#782278 #4D7822 #22784D
monochromatic
#190719 #481448 #782278 #A830A8 #CB49CB

Accessibility & contrast

On white

9.14
#782278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#782278 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782278
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782278#FFFFFF#000000##FFFFFF
##7822781.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14417A
Deuteranopia (green-blind)
#384C76
Tritanopia (blue-blind)
#7C2F4A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #782278;
/* rgb */ color: rgb(120, 34, 120);
/* oklch */ color: oklch(42.3% 0.157 327.9);
Tailwind
colors: {
  custom: {
    50: '#a2669f',
    500: '#782278',
    950: '#000000',
  },
}
SCSS
$custom: #782278;
$custom-light: #a2669f;
$custom-dark: #000000;
JSON
{
  "hex": "#782278",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 300,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42255,
    "c": 0.15733,
    "h": 327.9
  },
  "luminance": 0.06493
}

Semantic roles & 50–950 ramp

primary
#782278
secondary
#4BAB4B
accent
#DF4949
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #782278

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

Preview Lab → · Contrast checker → · Palette generator →

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