Skip to content

#b2cf12

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

RGB
178, 207, 18
HSL
69°, 84%, 44%
CMYK
14, 0, 91, 19
Luminance
0.5413

Every format

HEX#b2cf12
RGBrgb(178, 207, 18)
HSLhsl(69, 84%, 44%)
CMYKcmyk(14%, 0%, 91%, 19%)
LABlab(78.5 -30.4 76.3)
LCHlch(78.5 82.1 111.7)
OKLCHoklch(0.805 0.187 119.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b2cf12 on white: 1.78:1
AA ✗ fail · AA-large · AAA
Aa
#b2cf12 on black: 11.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green81.2%
Blue7.1%

CMYK percentages

Cyan14.0%
Magenta0.0%
Yellow91.3%
Key (black)18.8%

Color previews

#b2cf12 text on a black background

contrast 11.83:1

Card sample

#b2cf12 text on a white background

contrast 1.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(178, 207, 18, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 207, 18, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b2cf12;
background: linear-gradient(135deg, #b2cf12, #34CF12);

Monochromatic scale

Palettes built from #b2cf12

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2cf12 in the Color Lab