Gradient Page

#764BA2

#764BA2 is the HEX color code for
Affair
#764BA2

Affair

Contrast
Dark
Luminance
38%
Color Conversions
Formats for Affair (#764BA2) in various color spaces.
#764BA2
118, 75, 162
270°, 37%, 46%
27%, 54%, 0%, 36%
0.501, 0.138, 304.7
--color-affair: #764BA2;

Shades & Tints

#f2eef7
#d9cbe7
#bfa8d7
#a685c7
#8c62b7
#73489d
#59387a
#402857
#261834
#0d0811
DarkestBaseLightest

Color Harmonies

Complementary

#764BA2
#75a14a

Analogous

#4a4aa1
#764BA2
#a14aa1

Triadic

#764BA2
#a1754a
#4aa175

Split Complementary

#764BA2
#a1a14a
#4aa14a

UI Component Examples

See how #764BA2 looks when applied to real interface components.

Interactive Elements
Surface & Accent
Pro Tip!

Use lighter tints for backgrounds to maintain readability while keeping brand identity.

Status Indicator
Active
# CSS Variables
Copy-paste these variables into your global CSS to use this palette instantly.
:root {
  /* Affair Base */
  --color-primary: #764BA2;
  --color-primary-rgb: 118 75 162;
  --color-primary-hsl: 270 37% 46%;
  
  /* Foreground text color based on contrast */
  --color-primary-foreground: #ffffff;

  /* Shades */
  --color-primary-50:  #f2eef7;
  --color-primary-100: #d9cbe7;
  --color-primary-200: #bfa8d7;
  --color-primary-300: #a685c7;
  --color-primary-400: #8c62b7;
  --color-primary-500: #73489d;
  --color-primary-600: #59387a;
  --color-primary-700: #402857;
  --color-primary-800: #261834;
  --color-primary-900: #0d0811;
}

Want more?

We hope you enjoyed this color. Keep reading for more amazing colorful content for developers, designers and creators!
View our entire collection of UI gradientsView all our color names
#764BA2 Hex Color | Affair sl | UI Color Scheme Generator