#784CA5#784CA5

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

Color values

HEX#784CA5
RGBrgb(120, 76, 165)
HSLhsl(270, 37%, 47%)
HSVhsv(270, 54%, 65%)
CMYKcmyk(27.3%, 53.9%, 0%, 35.3%)
CIE-LABlab(41.02, 36.59, -41.23)
CIE-LCHlch(41.02, 55.12, 311.59°)
OKLaboklab(50.69% 0.0803 -0.116)
OKLCHoklch(50.69% 0.141 304.7)
XYZxyz(17.1202, 11.8786, 36.9809)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784CA5 #79A54C
analogous
#4C4DA5 #784CA5 #A44CA5
triadic
#784CA5 #A5784C #4CA578
tetradic
#784CA5 #A54C4D #79A54C #4CA5A4
square
#784CA5 #A54C4D #79A54C #4CA5A4
split-complementary
#784CA5 #A5A44C #4DA54C
monochromatic
#3B2551 #5A397B #784CA5 #9771BD #B59BD1

Accessibility & contrast

On white

6.22
#784CA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #784CA5
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784CA5#FFFFFF#000000##FFFFFF
##784CA51.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5FA8
Deuteranopia (green-blind)
#3C61A3
Tritanopia (blue-blind)
#705C71
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #784ca5;
/* rgb */ color: rgb(120, 76, 165);
/* oklch */ color: oklch(50.7% 0.141 304.7);
Tailwind
colors: {
  custom: {
    50: '#a17fc0',
    500: '#784ca5',
    950: '#000000',
  },
}
SCSS
$custom: #784ca5;
$custom-light: #a17fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#784ca5",
  "rgb": {
    "r": 120,
    "g": 76,
    "b": 165
  },
  "hsl": {
    "h": 269.663,
    "s": 36.929,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50688,
    "c": 0.14109,
    "h": 304.7
  },
  "luminance": 0.11879
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #784CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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