Skip to content

#b2c255

a balanced, vivid yellow · cool · closest name: khaki

RGB
178, 194, 85
HSL
69°, 47%, 55%
CMYK
8, 0, 56, 24
Luminance
0.4870

Every format

HEX#b2c255
RGBrgb(178, 194, 85)
HSLhsl(69, 47%, 55%)
CMYKcmyk(8%, 0%, 56%, 24%)
LABlab(75.3 -20.9 52.0)
LCHlch(75.3 56.0 111.9)
OKLCHoklch(0.780 0.135 116.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#b2c255 on white: 1.96:1
AA ✗ fail · AA-large · AAA
Aa
#b2c255 on black: 10.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red69.8%
Green76.1%
Blue33.3%

CMYK percentages

Cyan8.2%
Magenta0.0%
Yellow56.2%
Key (black)23.9%

Color previews

#b2c255 text on a black background

contrast 10.74:1

Card sample

#b2c255 text on a white background

contrast 1.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(178, 194, 85, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(178, 194, 85, 0.45);
Border & gradient
Gradient panel
border: 3px solid #b2c255;
background: linear-gradient(135deg, #b2c255, #69C255);

Monochromatic scale

Palettes built from #b2c255

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #b2c255 in the Color Lab