#784AA7#784AA7

#784AA7 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.5% C 0.147 H 304.5°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#784AA7
RGBrgb(120, 74, 167)
HSLhsl(270, 39%, 47%)
HSVhsv(270, 56%, 65%)
CMYKcmyk(28.1%, 55.7%, 0%, 34.5%)
CIE-LABlab(40.70, 38.22, -42.92)
CIE-LCHlch(40.70, 57.48, 311.68°)
OKLaboklab(50.49% 0.0832 -0.121)
OKLCHoklch(50.49% 0.147 304.5)
XYZxyz(17.1680, 11.6807, 37.9019)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784AA7 #79A74A
analogous
#4A4BA7 #784AA7 #A64AA7
triadic
#784AA7 #A7784A #4AA778
tetradic
#784AA7 #A74A4B #79A74A #4AA7A6
square
#784AA7 #A74A4B #79A74A #4AA7A6
split-complementary
#784AA7 #A7A64A #4BA74A
monochromatic
#3B2452 #5A377D #784AA7 #976FBF #B599D2

Accessibility & contrast

On white

6.29
#784AA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#784AA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784AA7
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784AA7#FFFFFF#000000##FFFFFF
##784AA71.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285FAA
Deuteranopia (green-blind)
#3860A5
Tritanopia (blue-blind)
#705C71
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #784aa7;
/* rgb */ color: rgb(120, 74, 167);
/* oklch */ color: oklch(50.5% 0.147 304.5);
Tailwind
colors: {
  custom: {
    50: '#a27ec2',
    500: '#784aa7',
    950: '#000000',
  },
}
SCSS
$custom: #784aa7;
$custom-light: #a27ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#784aa7",
  "rgb": {
    "r": 120,
    "g": 74,
    "b": 167
  },
  "hsl": {
    "h": 269.677,
    "s": 38.589,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50491,
    "c": 0.14678,
    "h": 304.5
  },
  "luminance": 0.11681
}

Semantic roles & 50–950 ramp

primary
#784AA7
secondary
#A7BE8E
accent
#CF5995
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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