#784CA1#784CA1

#784CA1 is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.4% C 0.136 H 306.0°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#784CA1
RGBrgb(120, 76, 161)
HSLhsl(271, 36%, 46%)
HSVhsv(271, 53%, 63%)
CMYKcmyk(25.5%, 52.8%, 0%, 36.9%)
CIE-LABlab(40.79, 35.60, -39.21)
CIE-LCHlch(40.79, 52.96, 312.24°)
OKLaboklab(50.44% 0.08 -0.1101)
OKLCHoklch(50.44% 0.136 306)
XYZxyz(16.7619, 11.7353, 35.0934)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784CA1 #75A14C
analogous
#4E4CA1 #784CA1 #A14CA0
triadic
#784CA1 #A1784C #4CA178
tetradic
#784CA1 #A14E4C #75A14C #4CA0A1
square
#784CA1 #A14E4C #75A14C #4CA0A1
split-complementary
#784CA1 #A0A14C #4CA14E
monochromatic
#3A254E #593877 #784CA1 #966FBB #B599CF

Accessibility & contrast

On white

6.27
#784CA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#784CA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784CA1
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784CA1#FFFFFF#000000##FFFFFF
##784CA11.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325FA4
Deuteranopia (green-blind)
#3F609F
Tritanopia (blue-blind)
#715B6F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #784ca1;
/* rgb */ color: rgb(120, 76, 161);
/* oklch */ color: oklch(50.4% 0.136 306.0);
Tailwind
colors: {
  custom: {
    50: '#a17fbd',
    500: '#784ca1',
    950: '#000000',
  },
}
SCSS
$custom: #784ca1;
$custom-light: #a17fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#784ca1",
  "rgb": {
    "r": 120,
    "g": 76,
    "b": 161
  },
  "hsl": {
    "h": 271.059,
    "s": 35.865,
    "l": 46.471
  },
  "oklch": {
    "l": 0.50443,
    "c": 0.1361,
    "h": 306
  },
  "luminance": 0.11735
}

Semantic roles & 50–950 ramp

primary
#784CA1
secondary
#A4BB8E
accent
#CC5C92
background
#FAF7FB
surface
#F4EEF6
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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