#782280#782280

#782280 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.164 H 324.2°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#782280
RGBrgb(120, 34, 128)
HSLhsl(295, 58%, 32%)
HSVhsv(295, 73%, 50%)
CMYKcmyk(6.3%, 73.4%, 0%, 49.8%)
CIE-LABlab(31.11, 49.27, -34.46)
CIE-LCHlch(31.11, 60.13, 325.03°)
OKLaboklab(42.75% 0.1333 -0.096)
OKLCHoklch(42.75% 0.164 324.2)
XYZxyz(12.2137, 6.6964, 21.0671)
Luminance0.0670 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782280 #2A8022
analogous
#492280 #782280 #802259
triadic
#782280 #807822 #228078
tetradic
#782280 #804922 #2A8022 #225980
square
#782280 #804922 #2A8022 #225980
split-complementary
#782280 #598022 #228049
monochromatic
#1D081F #4B1550 #782280 #A52FB0 #C54DD0

Accessibility & contrast

On white

8.98
#782280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#782280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782280
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782280#FFFFFF#000000##FFFFFF
##7822801.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044383
Deuteranopia (green-blind)
#334D7E
Tritanopia (blue-blind)
#7A324F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #782280;
/* rgb */ color: rgb(120, 34, 128);
/* oklch */ color: oklch(42.8% 0.164 324.2);
Tailwind
colors: {
  custom: {
    50: '#a266a5',
    500: '#782280',
    950: '#000000',
  },
}
SCSS
$custom: #782280;
$custom-light: #a266a5;
$custom-dark: #000000;
JSON
{
  "hex": "#782280",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 128
  },
  "hsl": {
    "h": 294.894,
    "s": 58.025,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42753,
    "c": 0.16424,
    "h": 324.2
  },
  "luminance": 0.06696
}

Semantic roles & 50–950 ramp

primary
#782280
secondary
#54B24B
accent
#E14754
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #782280

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

Preview Lab → · Contrast checker → · Palette generator →

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