#784CA7#784CA7

#784CA7 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 50.8% C 0.144 H 304.1°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#784CA7
RGBrgb(120, 76, 167)
HSLhsl(269, 37%, 48%)
HSVhsv(269, 54%, 65%)
CMYKcmyk(28.1%, 54.5%, 0%, 34.5%)
CIE-LABlab(41.14, 37.09, -42.23)
CIE-LCHlch(41.14, 56.20, 311.29°)
OKLaboklab(50.81% 0.0804 -0.1189)
OKLCHoklch(50.81% 0.144 304.1)
XYZxyz(17.3037, 11.9520, 37.9471)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784CA7 #7BA74C
analogous
#4C4DA7 #784CA7 #A64CA7
triadic
#784CA7 #A7784C #4CA778
tetradic
#784CA7 #A74C4D #7BA74C #4CA7A6
square
#784CA7 #A74C4D #7BA74C #4CA7A6
split-complementary
#784CA7 #A7A64C #4DA74C
monochromatic
#3C2653 #5A397D #784CA7 #9772BF #B69CD2

Accessibility & contrast

On white

6.19
#784CA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#784CA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784CA7
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784CA7#FFFFFF#000000##FFFFFF
##784CA71.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C60AA
Deuteranopia (green-blind)
#3B61A5
Tritanopia (blue-blind)
#705D72
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #784ca7;
/* rgb */ color: rgb(120, 76, 167);
/* oklch */ color: oklch(50.8% 0.144 304.1);
Tailwind
colors: {
  custom: {
    50: '#a27fc2',
    500: '#784ca7',
    950: '#000000',
  },
}
SCSS
$custom: #784ca7;
$custom-light: #a27fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#784ca7",
  "rgb": {
    "r": 120,
    "g": 76,
    "b": 167
  },
  "hsl": {
    "h": 269.011,
    "s": 37.449,
    "l": 47.647
  },
  "oklch": {
    "l": 0.50812,
    "c": 0.14358,
    "h": 304.1
  },
  "luminance": 0.11952
}

Semantic roles & 50–950 ramp

primary
#784CA7
secondary
#A8BE90
accent
#CD5A96
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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