#784FA7#784FA7

#784FA7 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 51.3% C 0.139 H 303.4°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#784FA7
RGBrgb(120, 79, 167)
HSLhsl(268, 36%, 48%)
HSVhsv(268, 53%, 65%)
CMYKcmyk(28.1%, 52.7%, 0%, 34.5%)
CIE-LABlab(41.81, 35.37, -41.17)
CIE-LCHlch(41.81, 54.27, 310.67°)
OKLaboklab(51.31% 0.0763 -0.1158)
OKLCHoklch(51.31% 0.139 303.4)
XYZxyz(17.5152, 12.3751, 38.0176)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784FA7 #7EA74F
analogous
#4F52A7 #784FA7 #A44FA7
triadic
#784FA7 #A7784F #4FA778
tetradic
#784FA7 #A74F52 #7EA74F #4FA7A4
square
#784FA7 #A74F52 #7EA74F #4FA7A4
split-complementary
#784FA7 #A7A44F #52A74F
monochromatic
#3C2854 #5A3B7D #784FA7 #9775BE #B69FD2

Accessibility & contrast

On white

6.04
#784FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#784FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784FA7
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784FA7#FFFFFF#000000##FFFFFF
##784FA71.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3262AA
Deuteranopia (green-blind)
#3E63A5
Tritanopia (blue-blind)
#705F73
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #784fa7;
/* rgb */ color: rgb(120, 79, 167);
/* oklch */ color: oklch(51.3% 0.139 303.4);
Tailwind
colors: {
  custom: {
    50: '#a181c1',
    500: '#784fa7',
    950: '#000000',
  },
}
SCSS
$custom: #784fa7;
$custom-light: #a181c1;
$custom-dark: #000000;
JSON
{
  "hex": "#784fa7",
  "rgb": {
    "r": 120,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 267.955,
    "s": 35.772,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51305,
    "c": 0.13872,
    "h": 303.4
  },
  "luminance": 0.12375
}

Semantic roles & 50–950 ramp

primary
#784FA7
secondary
#AABE93
accent
#CC5C98
background
#FAF8FB
surface
#F4EFF7
border
#CECAD0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784FA7

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

Preview Lab → · Contrast checker → · Palette generator →

#784FA7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva