Skip to content

#cafbaf

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

RGB
202, 251, 175
HSL
99°, 91%, 84%
CMYK
20, 0, 30, 2
Luminance
0.8465

Every format

HEX#cafbaf
RGBrgb(202, 251, 175)
HSLhsl(99, 91%, 84%)
CMYKcmyk(20%, 0%, 30%, 2%)
LABlab(93.7 -28.9 31.5)
LCHlch(93.7 42.7 132.5)
OKLCHoklch(0.936 0.112 134.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cafbaf on white: 1.17:1
AA ✗ fail · AA-large · AAA
Aa
#cafbaf on black: 17.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red79.2%
Green98.4%
Blue68.6%

CMYK percentages

Cyan19.5%
Magenta0.0%
Yellow30.3%
Key (black)1.6%

Color previews

#cafbaf text on a black background

contrast 17.93:1

Card sample

#cafbaf text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(202, 251, 175, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(202, 251, 175, 0.45);
Border & gradient
Gradient panel
border: 3px solid #cafbaf;
background: linear-gradient(135deg, #cafbaf, #AFFBC7);

Monochromatic scale

Palettes built from #cafbaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cafbaf in the Color Lab