Skip to content

#ffebac

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

RGB
255, 235, 172
HSL
46°, 100%, 84%
CMYK
0, 8, 33, 0
Luminance
0.8366

Every format

HEX#ffebac
RGBrgb(255, 235, 172)
HSLhsl(46, 100%, 84%)
CMYKcmyk(0%, 8%, 33%, 0%)
LABlab(93.3 -2.2 33.1)
LCHlch(93.3 33.2 93.8)
OKLCHoklch(0.942 0.083 92.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green92.2%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta7.8%
Yellow32.5%
Key (black)0.0%

Color previews

#ffebac text on a black background

contrast 17.73:1

Card sample

#ffebac text on a white background

contrast 1.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffebac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffebac in the Color Lab