Skip to content

#f2ba4b

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

RGB
242, 186, 75
HSL
40°, 87%, 62%
CMYK
0, 23, 69, 5
Luminance
0.5450

Every format

HEX#f2ba4b
RGBrgb(242, 186, 75)
HSLhsl(40, 87%, 62%)
CMYKcmyk(0%, 23%, 69%, 5%)
LABlab(78.8 9.4 61.8)
LCHlch(78.8 62.5 81.4)
OKLCHoklch(0.820 0.140 81.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2ba4b on white: 1.76:1
AA ✗ fail · AA-large · AAA
Aa
#f2ba4b on black: 11.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green72.9%
Blue29.4%

CMYK percentages

Cyan0.0%
Magenta23.1%
Yellow69.0%
Key (black)5.1%

Color previews

#f2ba4b text on a black background

contrast 11.90:1

Card sample

#f2ba4b text on a white background

contrast 1.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2ba4b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2ba4b in the Color Lab