#784CA6#784CA6

#784CA6 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 50.7% C 0.142 H 304.4°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#784CA6
RGBrgb(120, 76, 166)
HSLhsl(269, 37%, 47%)
HSVhsv(269, 54%, 65%)
CMYKcmyk(27.7%, 54.2%, 0%, 34.9%)
CIE-LABlab(41.08, 36.84, -41.73)
CIE-LCHlch(41.08, 55.66, 311.44°)
OKLaboklab(50.75% 0.0804 -0.1175)
OKLCHoklch(50.75% 0.142 304.4)
XYZxyz(17.2116, 11.9152, 37.4621)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784CA6 #7AA64C
analogous
#4C4DA6 #784CA6 #A54CA6
triadic
#784CA6 #A6784C #4CA678
tetradic
#784CA6 #A64C4D #7AA64C #4CA6A5
square
#784CA6 #A64C4D #7AA64C #4CA6A5
split-complementary
#784CA6 #A6A54C #4DA64C
monochromatic
#3B2652 #5A397C #784CA6 #9771BE #B69BD1

Accessibility & contrast

On white

6.21
#784CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#784CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784CA6
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784CA6#FFFFFF#000000##FFFFFF
##784CA61.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #784ca6;
/* rgb */ color: rgb(120, 76, 166);
/* oklch */ color: oklch(50.7% 0.142 304.4);
Tailwind
colors: {
  custom: {
    50: '#a27fc1',
    500: '#784ca6',
    950: '#000000',
  },
}
SCSS
$custom: #784ca6;
$custom-light: #a27fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#784ca6",
  "rgb": {
    "r": 120,
    "g": 76,
    "b": 166
  },
  "hsl": {
    "h": 269.333,
    "s": 37.19,
    "l": 47.451
  },
  "oklch": {
    "l": 0.5075,
    "c": 0.14233,
    "h": 304.4
  },
  "luminance": 0.11915
}

Semantic roles & 50–950 ramp

primary
#784CA6
secondary
#A7BE90
accent
#CD5B95
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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