Skip to content

#f2cb7f

a light, electric orange · warm · closest name: khaki

RGB
242, 203, 127
HSL
40°, 82%, 72%
CMYK
0, 16, 48, 5
Luminance
0.6312

Every format

HEX#f2cb7f
RGBrgb(242, 203, 127)
HSLhsl(40, 82%, 72%)
CMYKcmyk(0%, 16%, 48%, 5%)
LABlab(83.5 4.3 42.9)
LCHlch(83.5 43.1 84.3)
OKLCHoklch(0.860 0.104 83.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2cb7f on white: 1.54:1
AA ✗ fail · AA-large · AAA
Aa
#f2cb7f on black: 13.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green79.6%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta16.1%
Yellow47.5%
Key (black)5.1%

Color previews

#f2cb7f text on a black background

contrast 13.62:1

Card sample

#f2cb7f text on a white background

contrast 1.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2cb7f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2cb7f in the Color Lab