#FFFF22 color

#FFFF22 is rgb(255, 255, 34) in RGB and hsl(60, 100%, 57%) in HSL. The closest CSS named color is yellow (#ffff00, ΔE 0.7). Use black text on it (contrast 19.58:1).

#FFFF22yellow
HEX#FFFF22
Short HEX#FF2
RGBrgb(255, 255, 34)
RGB percentrgb(100%, 100%, 13.3%)
HSLhsl(60, 100%, 57%)
HSV / HSBhsv(60, 87%, 100%)
CMYKcmyk(0%, 0%, 87%, 0%)

Edit in the color converter → · Check contrast → · Shades →

About #FFFF22

#FFFF22 is a medium, vivid yellow with a hue angle of 60°. It belongs to the yellow family and reads as a warm color. In the RGB model red is the strongest channel at 255 (100%) and blue the weakest at 34 (13%). Colors like this are typically used for buttons, links, badges and other accents that need to stand out.

Color conversions

HEX#FFFF22
Short HEX#FF2
RGBrgb(255, 255, 34)
RGB percentrgb(100%, 100%, 13.3%)
HSLhsl(60, 100%, 57%)
HSV / HSBhsv(60, 87%, 100%)
CMYKcmyk(0%, 0%, 87%, 0%)
CIELAB (D65)lab(97.2 -21.2 91)
Decimal16776994
Binary11111111 11111111 00100010

HEX FF FF 22 → 255, 255, 34 (each pair is a base-16 number: F×16 + F = 255)

Color harmonies

Harmonies rotate the HSL hue (complementary +180°, triadic ±120°, split-complementary ±150°, analogous ±30°, tetradic 90° steps) and keep saturation and lightness. Swatches link to the nearest color page.

Tints and shades of #FFFF22

Tints (mixed with white)

Shades (mixed with black)

Tones (mixed with gray)

Contrast and accessibility

Text on #FFFF22RatioAA normalAA largeAAA normalAAA large
White text1.07:1FailFailFailFail
Black text19.58:1PassPassPassPass
White text on #FFFF22
Black text on #FFFF22
#FFFF22 text on white
#FFFF22 text on black

Relative luminance is 0.9290 (0 = black, 1 = white). WCAG 2 requires 4.5:1 for body text and 3:1 for large text and UI components.

Color blindness simulation

Protanopia
#fff400

Deuteranopia
#fffa3d

Tritanopia
#ffeeda

Achromatopsia
#f7f7f7

People with red–green color blindness see this color almost unchanged (ΔE 1.8 for deuteranopia), so it is a safe choice where color carries meaning. Simulation uses the Machado (2009) matrices for full dichromacy; achromatopsia shows luminance only.

Similar named colors

NameHEXΔE 2000
yellow#ffff000.7
gold#ffd70011.6
khaki#f0e68c12.3
greenyellow#adff2f14.2

Nearby colors

CSS

.element {
  color: #ffff22;
  background-color: rgb(255, 255, 34);
  border: 1px solid hsl(60, 100%, 57%);
  box-shadow: 0 2px 8px rgb(255 255 34 / 50%);
}
:root { --brand: #ffff22; }

Frequently asked questions

What color is #FFFF22?
A medium vivid yellow in the yellow family. Closest CSS name: yellow.
What is #FFFF22 in RGB?
rgb(255, 255, 34): red 255, green 255, blue 34.
What is the complementary color of #FFFF22?
#2222FF, found by rotating the hue 180°.