Skip to content

#faff27

a balanced, electric yellow · cool · closest name: yellow

RGB
250, 255, 39
HSL
61°, 100%, 58%
CMYK
2, 0, 85, 0
Luminance
0.9199

Every format

HEX#faff27
RGBrgb(250, 255, 39)
HSLhsl(61, 100%, 58%)
CMYKcmyk(2%, 0%, 85%, 0%)
LABlab(96.8 -23.1 89.7)
LCHlch(96.8 92.6 104.5)
OKLCHoklch(0.965 0.206 111.2)

Copy-ready code

/* CSS */
color: #faff27;
background-color: #faff27;
/* Tailwind (arbitrary) */
class="text-[#faff27] bg-[#faff27]"
/* SCSS */
$brand: #faff27;
/* SwiftUI */
Color(red: 0.980, green: 1.000, blue: 0.153)
/* Android */
Color.parseColor("#faff27")

Accessibility — WCAG contrast

Aa
#faff27 on white: 1.08:1
AA ✗ fail · AA-large · AAA
Aa
#faff27 on black: 19.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.0%
Green100.0%
Blue15.3%

CMYK percentages

Cyan2.0%
Magenta0.0%
Yellow84.7%
Key (black)0.0%

Color previews

#faff27 text on a black background

contrast 19.40:1

Card sample

#faff27 text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #faff27;
Background color
Panel with #faff27 background
background-color: #faff27;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #faff27;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(250, 255, 39, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(250, 255, 39, 0.45);
Border & gradient
Gradient panel
border: 3px solid #faff27;
background: linear-gradient(135deg, #faff27, #6AFF27);

Monochromatic scale

Palettes built from #faff27

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #faff27 in the Color Lab