#782C8F#782C8F

#782C8F is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.165 H 317.4°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#782C8F
RGBrgb(120, 44, 143)
HSLhsl(286, 53%, 37%)
HSVhsv(286, 69%, 56%)
CMYKcmyk(16.1%, 69.2%, 0%, 43.9%)
CIE-LABlab(33.52, 48.11, -39.91)
CIE-LCHlch(33.52, 62.51, 320.32°)
OKLaboklab(44.78% 0.1216 -0.112)
OKLCHoklch(44.78% 0.165 317.4)
XYZxyz(13.6036, 7.7782, 26.7660)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782C8F #438F2C
analogous
#472C8F #782C8F #8F2C75
triadic
#782C8F #8F782C #2C8F78
tetradic
#782C8F #8F472C #438F2C #2C758F
square
#782C8F #8F472C #438F2C #2C758F
split-complementary
#782C8F #758F2C #2C8F47
monochromatic
#290F31 #511E60 #782C8F #9F3ABE #B766D0

Accessibility & contrast

On white

8.22
#782C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#782C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782C8F
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782C8F#FFFFFF#000000##FFFFFF
##782C8F1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#2F518D
Tritanopia (blue-blind)
#773F5A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #782c8f;
/* rgb */ color: rgb(120, 44, 143);
/* oklch */ color: oklch(44.8% 0.165 317.4);
Tailwind
colors: {
  custom: {
    50: '#a26cb0',
    500: '#782c8f',
    950: '#000000',
  },
}
SCSS
$custom: #782c8f;
$custom-light: #a26cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#782c8f",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 286.061,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.44784,
    "c": 0.1653,
    "h": 317.4
  },
  "luminance": 0.07778
}

Semantic roles & 50–950 ramp

primary
#782C8F
secondary
#74B661
accent
#DC4B6D
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #782C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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