Skip to content

#f0ccaf

a light, vivid orange · warm · closest name: tan

RGB
240, 204, 175
HSL
27°, 68%, 81%
CMYK
0, 15, 27, 6
Luminance
0.6481

Every format

HEX#f0ccaf
RGBrgb(240, 204, 175)
HSLhsl(27, 68%, 81%)
CMYKcmyk(0%, 15%, 27%, 6%)
LABlab(84.4 8.4 19.2)
LCHlch(84.4 20.9 66.3)
OKLCHoklch(0.869 0.056 60.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0ccaf on white: 1.50:1
AA ✗ fail · AA-large · AAA
Aa
#f0ccaf on black: 13.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green80.0%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta15.0%
Yellow27.1%
Key (black)5.9%

Color previews

#f0ccaf text on a black background

contrast 13.96:1

Card sample

#f0ccaf text on a white background

contrast 1.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ccaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ccaf in the Color Lab