Skip to content

#b2cf0c

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

RGB
178, 207, 12
HSL
69°, 89%, 43%
CMYK
14, 0, 94, 19
Luminance
0.5412

Every format

HEX#b2cf0c
RGBrgb(178, 207, 12)
HSLhsl(69, 89%, 43%)
CMYKcmyk(14%, 0%, 94%, 19%)
LABlab(78.5 -30.5 77.0)
LCHlch(78.5 82.8 111.6)
OKLCHoklch(0.805 0.188 119.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red69.8%
Green81.2%
Blue4.7%

CMYK percentages

Cyan14.0%
Magenta0.0%
Yellow94.2%
Key (black)18.8%

Color previews

#b2cf0c text on a black background

contrast 11.82:1

Card sample

#b2cf0c text on a white background

contrast 1.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #b2cf0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2cf0c in the Color Lab