Skip to content

#f0af2b

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

RGB
240, 175, 43
HSL
40°, 87%, 56%
CMYK
0, 27, 82, 6
Luminance
0.4936

Every format

HEX#f0af2b
RGBrgb(240, 175, 43)
HSLhsl(40, 87%, 56%)
CMYKcmyk(0%, 27%, 82%, 6%)
LABlab(75.7 13.0 70.7)
LCHlch(75.7 71.8 79.6)
OKLCHoklch(0.795 0.154 79.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0af2b on white: 1.93:1
AA ✗ fail · AA-large · AAA
Aa
#f0af2b on black: 10.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green68.6%
Blue16.9%

CMYK percentages

Cyan0.0%
Magenta27.1%
Yellow82.1%
Key (black)5.9%

Color previews

#f0af2b text on a black background

contrast 10.87:1

Card sample

#f0af2b text on a white background

contrast 1.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0af2b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0af2b in the Color Lab