Skip to content

#f0af08

a balanced, electric yellow · warm · closest name: orange

RGB
240, 175, 8
HSL
43°, 94%, 49%
CMYK
0, 27, 97, 6
Luminance
0.4920

Every format

HEX#f0af08
RGBrgb(240, 175, 8)
HSLhsl(43, 94%, 49%)
CMYKcmyk(0%, 27%, 97%, 6%)
LABlab(75.6 12.4 77.7)
LCHlch(75.6 78.7 80.9)
OKLCHoklch(0.794 0.163 81.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0af08 on white: 1.94:1
AA ✗ fail · AA-large · AAA
Aa
#f0af08 on black: 10.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green68.6%
Blue3.1%

CMYK percentages

Cyan0.0%
Magenta27.1%
Yellow96.7%
Key (black)5.9%

Color previews

#f0af08 text on a black background

contrast 10.84:1

Card sample

#f0af08 text on a white background

contrast 1.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(240, 175, 8, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(240, 175, 8, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f0af08;
background: linear-gradient(135deg, #f0af08, #96F008);

Monochromatic scale

Palettes built from #f0af08

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0af08 in the Color Lab