Skip to content

#f2ab3d

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

RGB
242, 171, 61
HSL
37°, 87%, 59%
CMYK
0, 29, 75, 5
Luminance
0.4834

Every format

HEX#f2ab3d
RGBrgb(242, 171, 61)
HSLhsl(37, 87%, 59%)
CMYKcmyk(0%, 29%, 75%, 5%)
LABlab(75.0 16.6 63.8)
LCHlch(75.0 65.9 75.4)
OKLCHoklch(0.791 0.146 74.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2ab3d on white: 1.97:1
AA ✗ fail · AA-large · AAA
Aa
#f2ab3d on black: 10.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green67.1%
Blue23.9%

CMYK percentages

Cyan0.0%
Magenta29.3%
Yellow74.8%
Key (black)5.1%

Color previews

#f2ab3d text on a black background

contrast 10.67:1

Card sample

#f2ab3d text on a white background

contrast 1.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(242, 171, 61, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(242, 171, 61, 0.45);
Border & gradient
Gradient panel
border: 3px solid #f2ab3d;
background: linear-gradient(135deg, #f2ab3d, #C0F23D);

Monochromatic scale

Palettes built from #f2ab3d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2ab3d in the Color Lab