Gradient Page

#874DA2

#874DA2 is the HEX color code for
Affair
#874DA2

Affair

Contrast
Dark
Luminance
41%
Color Conversions
Formats for Affair (#874DA2) in various color spaces.
#874DA2
135, 77, 162
281°, 36%, 47%
17%, 52%, 0%, 36%
0.524, 0.141, 314
--color-affair: #874DA2;

Shades & Tints

#f4eef7
#decbe7
#c8a8d6
#b286c6
#9b63b6
#82499c
#653979
#482957
#2b1834
#0e0811
DarkestBaseLightest

Color Harmonies

Complementary

#874DA2
#68a34d

Analogous

#5d4da3
#874DA2
#a34d93

Triadic

#874DA2
#a3884d
#4da388

Split Complementary

#874DA2
#93a34d
#4da35d

UI Component Examples

See how #874DA2 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: #874DA2;
  --color-primary-rgb: 135 77 162;
  --color-primary-hsl: 281 36% 47%;
  
  /* Foreground text color based on contrast */
  --color-primary-foreground: #ffffff;

  /* Shades */
  --color-primary-50:  #f4eef7;
  --color-primary-100: #decbe7;
  --color-primary-200: #c8a8d6;
  --color-primary-300: #b286c6;
  --color-primary-400: #9b63b6;
  --color-primary-500: #82499c;
  --color-primary-600: #653979;
  --color-primary-700: #482957;
  --color-primary-800: #2b1834;
  --color-primary-900: #0e0811;
}

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
#874DA2 Hex Color | Affair sl | UI Color Scheme Generator