Skip to content

#ebef21

a balanced, electric yellow · cool · closest name: yellow

RGB
235, 239, 33
HSL
61°, 87%, 53%
CMYK
2, 0, 86, 6
Luminance
0.7950

Every format

HEX#ebef21
RGBrgb(235, 239, 33)
HSLhsl(61, 87%, 53%)
CMYKcmyk(2%, 0%, 86%, 6%)
LABlab(91.5 -21.8 86.0)
LCHlch(91.5 88.7 104.2)
OKLCHoklch(0.919 0.197 111.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ebef21 on white: 1.24:1
AA ✗ fail · AA-large · AAA
Aa
#ebef21 on black: 16.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.2%
Green93.7%
Blue12.9%

CMYK percentages

Cyan1.7%
Magenta0.0%
Yellow86.2%
Key (black)6.3%

Color previews

#ebef21 text on a black background

contrast 16.90:1

Card sample

#ebef21 text on a white background

contrast 1.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(235, 239, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(235, 239, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ebef21;
background: linear-gradient(135deg, #ebef21, #61EF21);

Monochromatic scale

Palettes built from #ebef21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ebef21 in the Color Lab