#AF02F2

#af02f2 ≈ Vivid Violet

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

#af02f2 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 94.9% blue; printed in CMYK it uses 27.69% cyan, 99.17% magenta, 0% yellow and 5.1% black. Its hue angle is 283.25°, with 98.36% saturation and 47.84% 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 5.1:1 (WCAG AA). The closest named color is Vivid Violet (#9f00ff), ΔE 3.06.

Description generated from the measured properties of this color.

Conversions of #af02f2 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.1557

Readable text 5.1:1 AA ✓ AA Large ✓ AAA ✕ AAA Large ✓
Readable text 4.11:1 AA ✕ AA Large ✓ AAA ✕ AAA Large ✕

Achromatopsia #6e6e6e ≈ 0.003% of males
Achromatomaly #8d56b3 ≈ 0.001% of males
Protanopia #0068f7 ≈ 1.01% of males
Deuteranopia #0070ee ≈ 1.27% of males
Tritanopia #a6588e ≈ 0.0001% of males
Protanomaly #5a51f5 ≈ 1.08% of males
Deuteranomaly #6a58f0 ≈ 4.63% of males
Tritanomaly #a945bf ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

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

Vivid Violet
#af02f2  rgb(175, 2, 242)  hsl(283, 98%, 48%)  Vivid Violet
#45f202  rgb(69, 242, 2)  hsl(103, 98%, 48%)  Harlequin
#f2af02  rgb(242, 175, 2)  hsl(43, 98%, 48%)  Amber
#02f2af  rgb(2, 242, 175)  hsl(163, 98%, 48%)  Medium Spring Green