Skip to content

#c5cf2b

a balanced, vivid yellow · warm · closest name: Yellow Green

RGB
197, 207, 43
HSL
64°, 66%, 49%
CMYK
5, 0, 79, 19
Luminance
0.5667

At a glance

Every number on this page in one read: what #c5cf2b is made of, how bright it looks, and which way it leans.

Hex
#c5cf2b
Hue
64°
yellow
Saturation
66%
vivid
Lightness
49%
balanced
Brightness
81%
HSV value
Perceived
75%
weighted brightness
Luminance
0.5667
WCAG relative
Temperature
Warm
28/100 cool
Color family
Yellow
Tone
Vivid
Best ink
Black
12.33:1
Closest name
Yellow Green
ΔE2000 8.6
Where it sits
Hue64° of 360°
Saturation66%
Lightness49%
Temperature
Warm ← → Cool28% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#c5cf2b
RGBrgb(197, 207, 43)
HSLhsl(64, 66%, 49%)
CMYKcmyk(5%, 0%, 79%, 19%)
LABlab(80.0 -21.8 72.9)
LCHlch(80.0 76.1 106.7)
OKLCHoklch(0.820 0.172 113.3)
Decimal12963627
Display P3color(display-p3 0.773 0.812 0.169)

Copy-ready code

/* CSS */
color: #c5cf2b;
background-color: #c5cf2b;
/* Tailwind (arbitrary) */
class="text-[#c5cf2b] bg-[#c5cf2b]"
/* SCSS */
$brand: #c5cf2b;
/* SwiftUI */
Color(red: 0.773, green: 0.812, blue: 0.169)
/* Android */
Color.parseColor("#c5cf2b")
/* Flutter */
Color(0xFFC5CF2B)
/* Python / OpenCV (BGR) */
(43, 207, 197)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #c5cf2b · 12.33:1
Use #000000AAA at every size.
Aa
White text · 1.70:1
AA fail · AA large fail · AAA fail
Aa
Black text · 12.33:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #c5cf2b as text scores 1.70:1 on white and 12.33:1 on black.

Accessibility — WCAG contrast

Aa
#c5cf2b on white: 1.70:1
AA ✗ fail · AA-large · AAA
Aa
#c5cf2b on black: 12.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #DFC500
deuteranopia · #DFC83B
tritanopia · #D3C2B1

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #c5cf2b is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FBFBF3
#F7F8E8
#EFF1CB
#E7ECA2
#DBE274
#CFD845
#c5cf2b
#A1A923
#81871C
#5E6218
#3A3D0F
Base = 600Lightest = 50 · #FBFBF3Darkest = 950 · #3A3D0F
:root {
  --brand-50: #FBFBF3;
  --brand-100: #F7F8E8;
  --brand-200: #EFF1CB;
  --brand-300: #E7ECA2;
  --brand-400: #DBE274;
  --brand-500: #CFD845;
  --brand-600: #c5cf2b;
  --brand-700: #A1A923;
  --brand-800: #81871C;
  --brand-900: #5E6218;
  --brand-950: #3A3D0F;
  --brand: #c5cf2b;
  --brand-ink: #000000;
}

Colors that work with #c5cf2b

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAFAF4
Tinted page background
Border#EAEDC0
Hairlines and dividers
Muted text#969B4B
Captions on the surface
Accent#2647D4
Second voice, not a rival
Dark variant#646A16
Hover, pressed, headers
Light variant#FAFBEA
Selected rows, tints
Dark surface#232414
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #c5cf2b

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • Thin strokes and 1px borders — they disappear on light UI
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#352BCF
Analogous left#CF872B
Analogous right#73CF2B
Split-complement 1#2B73CF
Split-complement 2#872BCF
Triadic 1#2BC5CF
Triadic 2#CF2BC5
Tetradic#2BCF87

RGB percentages

Red77.3%
Green81.2%
Blue16.9%

CMYK percentages

Cyan4.8%
Magenta0.0%
Yellow79.2%
Key (black)18.8%

Color previews

#c5cf2b text on a black background

contrast 12.33:1

Card sample

#c5cf2b text on a white background

contrast 1.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(197, 207, 43, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(197, 207, 43, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c5cf2b;
background: linear-gradient(135deg, #c5cf2b, #58CF2B);

Monochromatic scale

Palettes built from #c5cf2b

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#c5cf2b in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
RetailLeisureEnergyWarning systems
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#c5cf2b, answered

What color is #c5cf2b?

#c5cf2b is a balanced vivid yellow, closest to Yellow Green (ΔE2000 8.6). It sits at 64° on the hue wheel with 66% saturation and 49% lightness, which reads as warm.

What is the RGB value of #c5cf2b?

rgb(197, 207, 43) — 197 red, 207 green and 43 blue out of 255, or 77.3% / 81.2% / 16.9% by channel.

Is #c5cf2b a light or a dark color?

It is a light color. Relative luminance is 0.5667 and perceived brightness is 75%, so black text on it reaches 12.33:1.

Should I use black or white text on #c5cf2b?

Black. It scores 12.33:1 against #c5cf2b, versus 1.70:1 for white — AAA at any size.

What is the complementary color of #c5cf2b?

#352BCF sits directly opposite on the wheel. Softer options are the split-complements #2B73CF and #872BCF, which give the same contrast with far less vibration.

What colors go well with #c5cf2b?

For interface work: #FAFAF4 as the surface, #EAEDC0 for borders, #969B4B for secondary text, #2647D4 as an accent and #646A16 for hover and pressed states. For a palette, the analogous pair #CF872B and #73CF2B stays calm, while #352BCF is the loudest partner.

What is #c5cf2b in CMYK for printing?

cmyk(5%, 0%, 79%, 19%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #c5cf2b warm or cool?

Warm — it scores 28 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CF9D2B; nudged cooler, #89D128.

Work with #c5cf2b in the Color Lab