#AF02FA

#af02fa ≈ Vivid Violet

  • magenta
  • Lightness: medium
  • Saturation: vivid
  • Cool

#af02fa is a color from the magenta family, with medium lightness and vivid saturation. In the RGB model it is made of 68.63% red, 0.78% green and 98.04% blue; printed in CMYK it uses 30% cyan, 99.2% magenta, 0% yellow and 1.96% black. Its hue angle is 281.85°, with 98.41% saturation and 49.41% lightness in HSL. It is a cool color, often associated with creativity, boldness and individuality. Designers typically use it for beauty and cosmetics, creative studios and call-to-action buttons. White text on this color reaches a contrast ratio of 4.99:1 (WCAG AA). The closest named color is Vivid Violet (#9f00ff), ΔE 2.77.

Description generated from the measured properties of this color.

Conversions of #af02fa into other color spaces
HEX
RGB
RGB percent
CMY
CMYK
HSL
HSV / HSB
Web safe#9900ff
CIE-LAB
XYZ
xyY
CIE-LCH
CIE-LUV
Hunter-Lab
OKLab
Binary
Decimal
Relative luminance0.1606

Readable text 4.99:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 4.21:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #707070 ≈ 0.003% of males
Achromatomaly #8d58b8 ≈ 0.001% of males
Protanopia #006aff ≈ 1.01% of males
Deuteranopia #0071f6 ≈ 1.27% of males
Tritanopia #a35c93 ≈ 0.0001% of males
Protanomaly #5653fd ≈ 1.08% of males
Deuteranomaly #6759f8 ≈ 4.63% of males
Tritanomaly #a848c5 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-af02fa {
  color: #af02fa;
}
Background
.bg-af02fa {
  background-color: #af02fa;
  color: #ffffff;
}
Border
.border-af02fa {
  border: 2px solid #af02fa;
}
CSS variables
:root {
  --color-primary: #af02fa;
  --color-primary-rgb: 175 2 250;
  --color-primary-hsl: 282 98% 49%;
}
Gradient
.gradient-af02fa {
  background: linear-gradient(135deg, #af02fa, #fa02c9);
}
Colored shadow
.shadow-af02fa {
  box-shadow: 0 8px 24px rgb(175 2 250 / 0.35);
}

Vivid Violet
#af02fa  rgb(175, 2, 250)  hsl(282, 98%, 49%)  Vivid Violet
#4dfa02  rgb(77, 250, 2)  hsl(102, 98%, 49%)  Harlequin
#faaf02  rgb(250, 175, 2)  hsl(42, 98%, 49%)  Marigold
#02faaf  rgb(2, 250, 175)  hsl(162, 98%, 49%)  Medium Spring Green