Skip to content

#ffebaf

a light, electric yellow · cool · closest name: khaki

RGB
255, 235, 175
HSL
45°, 100%, 84%
CMYK
0, 8, 31, 0
Luminance
0.8377

Every format

HEX#ffebaf
RGBrgb(255, 235, 175)
HSLhsl(45, 100%, 84%)
CMYKcmyk(0%, 8%, 31%, 0%)
LABlab(93.3 -1.9 31.6)
LCHlch(93.3 31.7 93.4)
OKLCHoklch(0.942 0.079 91.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffebaf on white: 1.18:1
AA ✗ fail · AA-large · AAA
Aa
#ffebaf on black: 17.75:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green92.2%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta7.8%
Yellow31.4%
Key (black)0.0%

Color previews

#ffebaf text on a black background

contrast 17.75:1

Card sample

#ffebaf text on a white background

contrast 1.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffebaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffebaf in the Color Lab