#782CA7#782CA7

#782CA7 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.5% C 0.189 H 309.0°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#782CA7
RGBrgb(120, 44, 167)
HSLhsl(277, 58%, 41%)
HSVhsv(277, 74%, 65%)
CMYKcmyk(28.1%, 73.7%, 0%, 34.5%)
CIE-LABlab(35.17, 53.30, -51.82)
CIE-LCHlch(35.17, 74.34, 315.81°)
OKLaboklab(46.49% 0.1189 -0.1469)
OKLCHoklch(46.49% 0.189 309)
XYZxyz(15.6200, 8.5847, 37.3859)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782CA7 #5BA72C
analogous
#3B2CA7 #782CA7 #A72C99
triadic
#782CA7 #A7782C #2CA778
tetradic
#782CA7 #A73B2C #5BA72C #2C99A7
square
#782CA7 #A73B2C #5BA72C #2C99A7
split-complementary
#782CA7 #99A72C #2CA73B
monochromatic
#321246 #551F77 #782CA7 #9843CD #B373DA

Accessibility & contrast

On white

7.73
#782CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#782CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782CA7
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782CA7#FFFFFF#000000##FFFFFF
##782CA71.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0854A4
Tritanopia (blue-blind)
#714967
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #782ca7;
/* rgb */ color: rgb(120, 44, 167);
/* oklch */ color: oklch(46.5% 0.189 309.0);
Tailwind
colors: {
  custom: {
    50: '#a36dc2',
    500: '#782ca7',
    950: '#000000',
  },
}
SCSS
$custom: #782ca7;
$custom-light: #a36dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#782ca7",
  "rgb": {
    "r": 120,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 277.073,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46491,
    "c": 0.189,
    "h": 309
  },
  "luminance": 0.08584
}

Semantic roles & 50–950 ramp

primary
#782CA7
secondary
#8DC26D
accent
#E24682
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #782CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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