#784CA2#784CA2

#784CA2 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 50.5% C 0.137 H 305.7°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#784CA2
RGBrgb(120, 76, 162)
HSLhsl(271, 36%, 47%)
HSVhsv(271, 53%, 64%)
CMYKcmyk(25.9%, 53.1%, 0%, 36.5%)
CIE-LABlab(40.85, 35.84, -39.71)
CIE-LCHlch(40.85, 53.50, 312.07°)
OKLaboklab(50.5% 0.0801 -0.1116)
OKLCHoklch(50.5% 0.137 305.7)
XYZxyz(16.8504, 11.7707, 35.5597)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784CA2 #76A24C
analogous
#4D4CA2 #784CA2 #A24CA1
triadic
#784CA2 #A2784C #4CA278
tetradic
#784CA2 #A24D4C #76A24C #4CA1A2
square
#784CA2 #A24D4C #76A24C #4CA1A2
split-complementary
#784CA2 #A1A24C #4CA24D
monochromatic
#3A254F #593878 #784CA2 #9670BC #B599CF

Accessibility & contrast

On white

6.26
#784CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #784CA2
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784CA2#FFFFFF#000000##FFFFFF
##784CA21.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315FA5
Deuteranopia (green-blind)
#3E61A0
Tritanopia (blue-blind)
#715C70
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #784ca2;
/* rgb */ color: rgb(120, 76, 162);
/* oklch */ color: oklch(50.5% 0.137 305.7);
Tailwind
colors: {
  custom: {
    50: '#a17fbe',
    500: '#784ca2',
    950: '#000000',
  },
}
SCSS
$custom: #784ca2;
$custom-light: #a17fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#784ca2",
  "rgb": {
    "r": 120,
    "g": 76,
    "b": 162
  },
  "hsl": {
    "h": 270.698,
    "s": 36.134,
    "l": 46.667
  },
  "oklch": {
    "l": 0.50504,
    "c": 0.13735,
    "h": 305.7
  },
  "luminance": 0.11771
}

Semantic roles & 50–950 ramp

primary
#784CA2
secondary
#A4BC8E
accent
#CC5C93
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #784CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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