#FFD902

#ffd902 ≈ Gold

  • yellow
  • Lightness: medium
  • Saturation: vivid
  • Warm

#ffd902 is a color from the yellow family, with medium lightness and vivid saturation. In the RGB model it is made of 100% red, 85.1% green and 0.78% blue; printed in CMYK it uses 0% cyan, 14.9% magenta, 99.22% yellow and 0% black. Its hue angle is 50.99°, with 100% saturation and 50.39% lightness in HSL. It is a warm color, often associated with optimism, attention and joy. Designers typically use it for highlights and warnings, children's products and call-to-action buttons. Black text on this color reaches a contrast ratio of 15.18:1 (WCAG AAA). The closest named color is Gold (#ffd700), ΔE 0.63.

Description generated from the measured properties of this color.

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

Readable text 1.38:1 AA ✕ AA Large ✕ AAA ✕ AAA Large ✕
Readable text 15.18:1 AA ✓ AA Large ✓ AAA ✓ AAA Large ✓

Achromatopsia #dbdbdb ≈ 0.003% of males
Achromatomaly #eadaae ≈ 0.001% of males
Protanopia #f1d400 ≈ 1.01% of males
Deuteranopia #fbe025 ≈ 1.27% of males
Tritanopia #ffc6b9 ≈ 0.0001% of males
Protanomaly #f7d600 ≈ 1.08% of males
Deuteranomaly #fddd1c ≈ 4.63% of males
Tritanomaly #ffce93 ≈ 0.0002% of males
Simulate on your own image

Text in this color

Background in this color

Border in this color

Text color
.text-ffd902 {
  color: #ffd902;
}
Background
.bg-ffd902 {
  background-color: #ffd902;
  color: #000000;
}
Border
.border-ffd902 {
  border: 2px solid #ffd902;
}
CSS variables
:root {
  --color-primary: #ffd902;
  --color-primary-rgb: 255 217 2;
  --color-primary-hsl: 51 100% 50%;
}
Gradient
.gradient-ffd902 {
  background: linear-gradient(135deg, #ffd902, #a6ff02);
}
Colored shadow
.shadow-ffd902 {
  box-shadow: 0 8px 24px rgb(255 217 2 / 0.35);
}

Gold
#ffd902  rgb(255, 217, 2)  hsl(51, 100%, 50%)  Gold
#0228ff  rgb(2, 40, 255)  hsl(231, 100%, 50%)  Blue
#02ffd9  rgb(2, 255, 217)  hsl(171, 100%, 50%)  Aquamarine
#d902ff  rgb(217, 2, 255)  hsl(291, 100%, 50%)  Electric Purple